修改任务包

This commit is contained in:
13684185576
2025-11-14 11:22:10 +08:00
parent ce2cc79be3
commit 7246f8f3a8
4 changed files with 22 additions and 22 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;