From 7b8b50322c6dd86ef396cf62d7ec1448cc565371 Mon Sep 17 00:00:00 2001 From: wukang Date: Wed, 7 Sep 2022 11:01:02 +0800 Subject: [PATCH] change 'loging' to 'loading' --- src/views/login/index.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/login/index.vue b/src/views/login/index.vue index aecd734..86d9af3 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -36,7 +36,7 @@
- + 登录
@@ -73,7 +73,7 @@ function initLoginInfo() { } const isRemember = useStorage('isRemember', false) -const loging = ref(false) +const loading = ref(false) async function handleLogin() { const { name, password } = loginInfo.value if (!name || !password) { @@ -81,7 +81,7 @@ async function handleLogin() { return } try { - loging.value = true + loading.value = true $message.loading('正在验证...') const res = await api.login({ name, password: password.toString() }) $message.success('登录成功') @@ -102,6 +102,6 @@ async function handleLogin() { console.error(error) $message.removeMessage() } - loging.value = false + loading.value = false }