fix登录可能会产生的错误

This commit is contained in:
不做码农
2022-04-26 08:18:19 +08:00
parent 74d871ee75
commit 62cdedb9df
3 changed files with 8 additions and 12 deletions
+1 -2
View File
@@ -107,7 +107,7 @@ function handleLogin() {
router.push({ path: redirect.value || '/' })
})
.catch((error) => {
console.log(error)
console.error(error)
proxy.$modal.msgError(error.msg)
loading.value = false
// 重新获取验证码
@@ -138,7 +138,6 @@ function getCookie() {
}
getCode()
getCookie()
onMounted(() => {})
</script>
<style lang="scss" scoped>