From 73b5d3ec41705ae36e154dd21a8bdac61679a590 Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Mon, 18 Sep 2023 20:22:26 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E9=A1=B5`loading`=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/login/index.vue b/src/views/login/index.vue index c42905bfbd..a3115e238c 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -80,7 +80,8 @@ const onLogin = async (formEl: FormInstance | undefined) => { message("登录成功", { type: "success" }); }); } - }); + }) + .finally(() => (loading.value = false)); } else { loading.value = false; return fields;