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
}