|
|
@ -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状态 |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
//获取菜单树 |
|
|
//获取菜单树 |
|
|
|