diff --git a/src/views/dashboard/configuration/Widget.vue b/src/views/dashboard/configuration/Widget.vue
index 9e804297..3cc992ec 100644
--- a/src/views/dashboard/configuration/Widget.vue
+++ b/src/views/dashboard/configuration/Widget.vue
@@ -37,6 +37,7 @@ limitations under the License. -->
metricTypes: dashboardStore.selectedGrid.metricTypes,
metricConfig: dashboardStore.selectedGrid.metricConfig,
}"
+ :needQuery="true"
/>
{{ t("noData") }}
diff --git a/src/views/dashboard/graphs/EndpointList.vue b/src/views/dashboard/graphs/EndpointList.vue
index 838a1d9a..a0fa96b7 100644
--- a/src/views/dashboard/graphs/EndpointList.vue
+++ b/src/views/dashboard/graphs/EndpointList.vue
@@ -111,6 +111,7 @@ const props = defineProps({
i: "",
}),
},
+ needQuery: { type: Boolean, default: false },
intervalTime: { type: Array as PropType, default: () => [] },
});
// const emit = defineEmits(["changeOpt"]);
@@ -121,8 +122,9 @@ const endpoints = ref([]);
const searchText = ref("");
const colMetrics = computed(() => props.config.metrics.map((d: string) => d));
-queryEndpoints();
-
+if (props.needQuery) {
+ queryEndpoints();
+}
async function queryEndpoints() {
chartLoading.value = true;
const resp = await selectorStore.getEndpoints({
diff --git a/src/views/dashboard/graphs/InstanceList.vue b/src/views/dashboard/graphs/InstanceList.vue
index e3641668..a7893cb4 100644
--- a/src/views/dashboard/graphs/InstanceList.vue
+++ b/src/views/dashboard/graphs/InstanceList.vue
@@ -142,7 +142,6 @@ const props = defineProps({
},
intervalTime: { type: Array as PropType, default: () => [] },
needQuery: { type: Boolean, default: false },
- isEdit: { type: Boolean, default: false },
});
const { t } = useI18n();
const selectorStore = useSelectorStore();
@@ -152,8 +151,10 @@ const instances = ref([]); // current instances
const pageSize = 10;
const searchText = ref("");
const colMetrics = computed(() => props.config.metrics.map((d: string) => d));
+if (props.needQuery) {
+ queryInstance();
+}
-queryInstance();
async function queryInstance() {
chartLoading.value = true;
const resp = await selectorStore.getServiceInstances();
diff --git a/src/views/dashboard/panel/Tool.vue b/src/views/dashboard/panel/Tool.vue
index 6d5f84af..b5b98641 100644
--- a/src/views/dashboard/panel/Tool.vue
+++ b/src/views/dashboard/panel/Tool.vue
@@ -120,7 +120,7 @@ limitations under the License. -->