sunlupeng 1 year ago
parent
commit
52ed1e9a6f
3 changed files with 8 additions and 8 deletions
  1. 2 2
      src/permission.js
  2. 4 4
      src/utils/request.js
  3. 2 2
      src/views/HomeView/PointsMall.vue

+ 2 - 2
src/permission.js

@@ -16,9 +16,9 @@ router.beforeEach((to, _from, next) => {
       next();
     }else{
       //本地地址
-      location.href = 'http://192.168.100.208:8080/oneportal/login';
+      // location.href = 'http://192.168.100.208:8080/oneportal/login';
       //发布地址
-      // location.href = 'http://dgtcloud.dgtis.com/oneportal/login';
+      location.href = 'http://dgtcloud.dgtis.com/oneportal/login';
     }
   }  
 })

+ 4 - 4
src/utils/request.js

@@ -5,9 +5,9 @@ import { getToken } from '@/utils/auth'
 // create an axios instance
 const service = axios.create({
   //本地测试地址
-  baseURL: 'http://192.168.100.208:9083/admin', 
+  // baseURL: 'http://192.168.100.208:9083/admin', 
   //发布地址
-  // baseURL: 'http://47.103.79.143:9085/admin', 
+  baseURL: 'http://47.103.79.143:9085/admin', 
   timeout: 10000 // request timeout
 })
 
@@ -36,9 +36,9 @@ service.interceptors.response.use(
           type: 'error'
         }).then(() => {
             //本地地址
-            location.href = 'http://192.168.100.208:8080/oneportal/login';
+            // location.href = 'http://192.168.100.208:8080/oneportal/login';
             //发布地址
-            // location.href = 'http://dgtcloud.dgtis.com/oneportal/login';
+            location.href = 'http://dgtcloud.dgtis.com/oneportal/login';
         })
       }else{
         Message({

File diff suppressed because it is too large
+ 2 - 2
src/views/HomeView/PointsMall.vue