|
|
|
@ -71,21 +71,19 @@ DictData.install()
|
|
|
|
|
import { setToken } from '@/utils/auth'
|
|
|
|
|
|
|
|
|
|
// 临时获取token
|
|
|
|
|
let token = async()=>{
|
|
|
|
|
let Authentication = await API.login.frimLogin();
|
|
|
|
|
localStorage.setItem(
|
|
|
|
|
"MSSM-LIAONING__TOKEN",
|
|
|
|
|
Authentication.data.result.userToken
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
token()
|
|
|
|
|
let infor = async()=>{
|
|
|
|
|
let response = await API.login.getuserinfo();
|
|
|
|
|
localStorage.setItem("userDto", JSON.stringify(response?.result.userDto));
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
infor()
|
|
|
|
|
// let token = async () => {
|
|
|
|
|
// let Authentication = await API.login.frimLogin();
|
|
|
|
|
// localStorage.setItem(
|
|
|
|
|
// "MSSM-LIAONING__TOKEN",
|
|
|
|
|
// Authentication.data.result.userToken
|
|
|
|
|
// );
|
|
|
|
|
// }
|
|
|
|
|
// token()
|
|
|
|
|
// let infor = async () => {
|
|
|
|
|
// let response = await API.login.getuserinfo();
|
|
|
|
|
// localStorage.setItem("userDto", JSON.stringify(response?.result.userDto));
|
|
|
|
|
// }
|
|
|
|
|
// infor()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|