mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-17 01:15:23 +00:00
set root
This commit is contained in:
parent
47f09ff1dd
commit
aa73338e47
@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License. -->
|
limitations under the License. -->
|
||||||
<template>
|
<template>
|
||||||
<Edit v-if="dashboardStore.currentDashboard" />
|
<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>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
|
@ -214,6 +214,7 @@ function handleView(row: DashboardItem) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function setRoot(row: DashboardItem) {
|
async function setRoot(row: DashboardItem) {
|
||||||
|
console.log(row);
|
||||||
const items: any[] = [];
|
const items: any[] = [];
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
for (const d of dashboardStore.dashboards) {
|
for (const d of dashboardStore.dashboards) {
|
||||||
@ -245,6 +246,7 @@ async function setRoot(row: DashboardItem) {
|
|||||||
if (
|
if (
|
||||||
d.layer === row.layer &&
|
d.layer === row.layer &&
|
||||||
d.entity === row.entity &&
|
d.entity === row.entity &&
|
||||||
|
d.id !== row.id &&
|
||||||
!row.isRoot &&
|
!row.isRoot &&
|
||||||
d.isRoot
|
d.isRoot
|
||||||
) {
|
) {
|
||||||
|
Loading…
Reference in New Issue
Block a user