tangning hace 4 meses
padre
commit
55570627ae
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/store/system.ts

+ 1 - 1
src/store/system.ts

@@ -31,8 +31,8 @@ const refreshUserInfo = async (data: any) => {
 
 
 export const login = async (props: LoginProps) => {
 export const login = async (props: LoginProps) => {
   const res = await axios.post(userLogin, {
   const res = await axios.post(userLogin, {
-    ...props,
     deptId: appConstant.deptId,
     deptId: appConstant.deptId,
+    ...props,
     password: encodePwd(props.password),
     password: encodePwd(props.password),
   });
   });
   user.value.token = res.data.token;
   user.value.token = res.data.token;