From 91a62c10d5769ef8188e18e455985ace90beedd6 Mon Sep 17 00:00:00 2001 From: dhy1725534722 <1725534722@qq.com> Date: Fri, 27 Oct 2023 17:11:31 +0800 Subject: [PATCH] 1 --- src/main.js | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/src/main.js b/src/main.js index 565e3d1..9021dd7 100644 --- a/src/main.js +++ b/src/main.js @@ -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() /**