This commit is contained in:
Qiuxia Fan 2022-03-19 11:05:16 +08:00
parent 47f09ff1dd
commit aa73338e47
2 changed files with 3 additions and 1 deletions

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. -->
<template>
<Edit v-if="dashboardStore.currentDashboard" />
<div class="no-root" v-else>{{ t("noRoot") }}{{ layer }}</div>
<div class="no-root" v-else>{{ t("noRoot") }} {{ layer }}</div>
</template>
<script lang="ts" setup>

View File

@ -214,6 +214,7 @@ function handleView(row: DashboardItem) {
}
async function setRoot(row: DashboardItem) {
console.log(row);
const items: any[] = [];
loading.value = true;
for (const d of dashboardStore.dashboards) {
@ -245,6 +246,7 @@ async function setRoot(row: DashboardItem) {
if (
d.layer === row.layer &&
d.entity === row.entity &&
d.id !== row.id &&
!row.isRoot &&
d.isRoot
) {