From 888ea09759f9f850c8a0f8c5afd54e6f420cfa5d Mon Sep 17 00:00:00 2001 From: Lazy <2211717435@qq.com> Date: Sat, 7 Oct 2023 20:57:16 +0800 Subject: [PATCH] Optimize: prompt text --- frontend/src/widgets/instance/dialogs/SelectUnzipCode.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/widgets/instance/dialogs/SelectUnzipCode.vue b/frontend/src/widgets/instance/dialogs/SelectUnzipCode.vue index 97e00f57..da7fec42 100644 --- a/frontend/src/widgets/instance/dialogs/SelectUnzipCode.vue +++ b/frontend/src/widgets/instance/dialogs/SelectUnzipCode.vue @@ -13,9 +13,10 @@ const zipCode = ref(); const submit = async () => { try { - emit("selectCode", zipCode); + if (!zipCode.value) throw new Error(t("请选择解压编码")); + emit("selectCode", zipCode.value); open.value = false; - return message.success(t("TXT_CODE_d3de39b4")); + return message.success(t("设置成功")); } catch (err: any) { return message.error(err.message); }