Browse Source

🐞 fix: 登录失败的bug

lihui/feature-20250915101448-现金管理
zhangrenyuan 1 month ago
parent
commit
26f4b358d0
  1. 2
      src/views/login.vue

2
src/views/login.vue

@ -93,10 +93,12 @@ const login = async function () {
form.value.password = '' form.value.password = ''
form.value.account = '' form.value.account = ''
ElMessage.error(result.msg) ElMessage.error(result.msg)
loading.value = false //loading
} }
} catch (error) { } catch (error) {
console.log('请求失败', error) console.log('请求失败', error)
ElMessage.error('登录失败,请检查账号密码') ElMessage.error('登录失败,请检查账号密码')
loading.value = false // loading
} }
} }
// //

Loading…
Cancel
Save