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

@ -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
) {