|
@@ -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;
|