mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-16 14:25: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. -->
|
||||
<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>
|
||||
|
@ -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
|
||||
) {
|
||||
|
Loading…
Reference in New Issue
Block a user