|
|
|
@ -37,10 +37,10 @@ import DictTag from '@/components/DictTag'
|
|
|
|
|
import VueMeta from 'vue-meta'
|
|
|
|
|
// 字典数据组件
|
|
|
|
|
import DictData from '@/components/DictData'
|
|
|
|
|
//计算rem基准
|
|
|
|
|
//计算rem基准
|
|
|
|
|
import '@/utils/rem.js'
|
|
|
|
|
// 引用api
|
|
|
|
|
import API from '@/api/index.js'
|
|
|
|
|
import API from '@/api/index.js'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 全局方法挂载
|
|
|
|
@ -70,22 +70,20 @@ Vue.use(VueMeta)
|
|
|
|
|
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()
|
|
|
|
|
// 临时获取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()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|