feat: enhance source processor

This commit is contained in:
Qiuxia Fan
2022-01-21 17:59:18 +08:00
parent 1a57665012
commit 367cc03f0a
13 changed files with 184 additions and 95 deletions

View File

@@ -108,7 +108,10 @@ const states = reactive<{
});
dashboardStore.setLayer(states.layerId);
dashboardStore.setEntity(states.entity);
onBeforeMount(async () => {
getServices();
async function getServices() {
if (!states.layerId) {
return;
}
@@ -118,7 +121,7 @@ onBeforeMount(async () => {
return;
}
fetchPods(states.entity);
});
}
async function changeService(service: Option[]) {
if (service[0]) {