lixing 1 year ago
parent
commit
e4afac40b8
4 changed files with 6 additions and 6 deletions
  1. 2 2
      index.html
  2. 1 1
      src/router/index.ts
  3. 1 1
      src/utils/request.ts
  4. 2 2
      src/views/login/index.vue

+ 2 - 2
index.html

@@ -4,7 +4,7 @@
     <meta charset="utf-8" />
     <meta http-equiv="X-UA-Compatible" content="IE=edge" />
     <meta name="viewport" content="width=device-width,initial-scale=1.0" />
-    <title>恒达云</title>
+    <title>豫中云</title>
     <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
     <link rel="stylesheet" href="https://at.alicdn.com/t/font_830376_qzecyukz0s.css" />
   </head>
@@ -12,7 +12,7 @@
   <body>
     <noscript>
       <strong
-        >We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please
+        >We're sorry but %= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please
         enable it to continue.</strong
       >
     </noscript>

+ 1 - 1
src/router/index.ts

@@ -364,7 +364,7 @@ const router = createRouter({
 
 router.beforeEach((to, from, next) => {
   NProgress.start()
-  const token = localStorage.getItem('HDToken')
+  const token = localStorage.getItem('yz-Token')
   if (!token && to.path !== '/login') {
     next('/login')
   } else {

+ 1 - 1
src/utils/request.ts

@@ -11,7 +11,7 @@ const service: AxiosInstance = axios.create({
 // 请求拦截
 service.interceptors.request.use(
   (config: AxiosRequestConfig) => {
-    const token = localStorage.getItem('HDToken')
+    const token = localStorage.getItem('yz-Token')
     if (token) {
       config!.headers!.Authorization = ('Bearer ' + token) as string
     }

+ 2 - 2
src/views/login/index.vue

@@ -5,7 +5,7 @@
       <div class="ms-title">
         <div class="title__text">
           <div>欢迎登录 !</div>
-          <div>恒达云平台</div>
+          <div>豫中云平台</div>
         </div>
         <el-button class="title__wchat" hidden>
           <img src="../../assets/img/wx.png" alt="" />
@@ -190,7 +190,7 @@
   const onLogin = async (e: string) => {
     localStorage.clear()
     const data: any = await userLogin({ ...param, tenancyName: e, type: 2 })
-    localStorage.setItem('HDToken', data.accessToken)
+    localStorage.setItem('yz-Token', data.accessToken)
     localStorage.setItem('user', JSON.stringify(data))
     userInfo.setUser(data)