+ {{ t("newDashboard") }}
@@ -37,7 +41,7 @@ limitations under the License. -->
- {{
+ {{
scope.row.name
}}
-
+
{{ scope.row.isRoot ? t("yes") : t("no") }}
-
+
{{ t("edit") }}
@@ -365,6 +369,10 @@ function searchDashboards() {
d.name.includes(searchText.value)
);
}
+
+function reloadTemplates() {
+ dashboardStore.resetTemplates();
+}
diff --git a/src/views/dashboard/graphs/InstanceList.vue b/src/views/dashboard/graphs/InstanceList.vue
index cd5fd0dc..784b3593 100644
--- a/src/views/dashboard/graphs/InstanceList.vue
+++ b/src/views/dashboard/graphs/InstanceList.vue
@@ -168,6 +168,10 @@ function clickInstance(scope: any) {
layer: dashboardStore.layerId,
entity: EntityType[3].value,
});
+ if (!d) {
+ ElMessage.error("No this dashboard");
+ return;
+ }
dashboardStore.setCurrentDashboard(d);
dashboardStore.setEntity(d.entity);
router.push(
diff --git a/src/views/dashboard/graphs/ServiceList.vue b/src/views/dashboard/graphs/ServiceList.vue
index 81bf5f92..5bdcead5 100644
--- a/src/views/dashboard/graphs/ServiceList.vue
+++ b/src/views/dashboard/graphs/ServiceList.vue
@@ -179,6 +179,10 @@ function clickService(scope: any) {
layer: dashboardStore.layerId,
entity: EntityType[0].value,
});
+ if (!d) {
+ ElMessage.error("No this dashboard");
+ return;
+ }
dashboardStore.setCurrentDashboard(d);
dashboardStore.setEntity(d.entity);
const path = `/dashboard/${d.layer}/${d.entity}/${scope.row.id}/${d.name