This commit is contained in:
13684185576
2025-11-13 20:55:41 +08:00
parent da6c07de87
commit ce2cc79be3
8 changed files with 494 additions and 146 deletions

View File

@ -189,21 +189,21 @@ const handleLogin = () => {
loading.value = true;
console.log(loginForm.value,'loginForm.value')
store.dispatch("user/login", loginForm.value).then((res) => {
loading.value = false;
// 登录后操作
// return false //调试好后删除
if (res.deptList.length === 1) {
window.location.href = '/'
} else {
deptList.value = [...res.deptList];
loginDialog.value = true;
authorization.value = res.jwtToken;
ElNotification({
title: "提示",
message: "请选择部门",
duration: 3000
});
}
// loading.value = false;
// // 登录后操作
// // return false //调试好后删除
// if (res.deptList.length === 1) {
// window.location.href = '/'
// } else {
// deptList.value = [...res.deptList];
// loginDialog.value = true;
// authorization.value = res.jwtToken;
// ElNotification({
// title: "提示",
// message: "请选择部门",
// duration: 3000
// });
// }
})
.catch(() => {
loading.value = false;