mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-13 00:08:56 +00:00
fix: update
This commit is contained in:
parent
9bdfcc1397
commit
ceb1ea8ef1
@ -611,6 +611,9 @@ limitations under the License. -->
|
||||
return ElMessage.error(resp.errors);
|
||||
}
|
||||
const pod = resp.data.endpoint || {};
|
||||
if (!pod.id) {
|
||||
ElMessage.info("The Destination endpoint ID doesn't exist.");
|
||||
}
|
||||
selectorStore.setCurrentDestPod(pod);
|
||||
states.currentDestPod = pod.label;
|
||||
}
|
||||
@ -626,6 +629,9 @@ limitations under the License. -->
|
||||
if (!currentDestPod) {
|
||||
states.currentDestPod = "";
|
||||
selectorStore.setCurrentDestPod(null);
|
||||
ElMessage.info(
|
||||
`The Destination ${params.entity === EntityType[6].value ? "endpoint" : "instance"} ID doesn't exist.`,
|
||||
);
|
||||
return;
|
||||
}
|
||||
selectorStore.setCurrentDestPod(currentDestPod);
|
||||
@ -638,8 +644,11 @@ limitations under the License. -->
|
||||
return ElMessage.error(resp.errors);
|
||||
}
|
||||
const pod = resp.data.endpoint || {};
|
||||
if (!pod.id) {
|
||||
ElMessage.info("The endpoint ID doesn't exist.");
|
||||
}
|
||||
selectorStore.setCurrentPod(pod);
|
||||
states.currentPod = pod.label;
|
||||
states.currentPod = pod.label || "";
|
||||
}
|
||||
async function updateCurrentPod() {
|
||||
if (!(selectorStore.pods.length && selectorStore.pods[0])) {
|
||||
@ -652,6 +661,7 @@ limitations under the License. -->
|
||||
if (!currentPod) {
|
||||
selectorStore.setCurrentPod(null);
|
||||
states.currentPod = "";
|
||||
ElMessage.info(`The ${params.entity === EntityType[2].value ? "endpoint" : "instance"} ID doesn't exist.`);
|
||||
return;
|
||||
}
|
||||
selectorStore.setCurrentPod(currentPod);
|
||||
|
Loading…
Reference in New Issue
Block a user