Browse Source

🐞 fix: 登录失败的bug

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

4
src/views/login.vue

@ -93,10 +93,12 @@ const login = async function () {
form.value.password = ''
form.value.account = ''
ElMessage.error(result.msg)
loading.value = false //loading
}
} catch (error) {
console.log('请求失败', error)
ElMessage.error('登录失败,请检查账号密码')
loading.value = false // loading
}
}
//
@ -278,4 +280,4 @@ onMounted(() => {
linear-gradient(in oklch longer hue -2deg, #a00, #a00);
background-size: 100% 2px, 100% 100%, 100% 100%;
}
</style>
</style>
Loading…
Cancel
Save