fix: update style

This commit is contained in:
Qiuxia Fan 2022-01-25 16:49:38 +08:00
parent 7ee7162165
commit b87c4c1cc9

View File

@ -20,7 +20,6 @@ limitations under the License. -->
<Selector <Selector
v-model="states.currentService" v-model="states.currentService"
:options="selectorStore.services" :options="selectorStore.services"
:disabled="states.disableService"
size="mini" size="mini"
placeholder="Select a service" placeholder="Select a service"
@change="changeService" @change="changeService"
@ -104,14 +103,12 @@ const states = reactive<{
key: number; key: number;
currentService: string; currentService: string;
currentPod: string; currentPod: string;
disableService: boolean;
}>({ }>({
destService: "", destService: "",
destPod: "", destPod: "",
key: (type && type.key) || 0, key: (type && type.key) || 0,
currentService: "", currentService: "",
currentPod: "", currentPod: "",
disableService: false,
}); });
dashboardStore.setLayer(String(params.layerId)); dashboardStore.setLayer(String(params.layerId));
@ -133,7 +130,6 @@ async function setSelector() {
)[0]; )[0];
selectorStore.setCurrentPod(currentPod); selectorStore.setCurrentPod(currentPod);
states.currentPod = currentPod.label; states.currentPod = currentPod.label;
states.disableService = true;
return; return;
} }
// entity=Service with serviceId // entity=Service with serviceId