asd26269546 hace 2 años
padre
commit
bc35658b16
Se han modificado 4 ficheros con 11 adiciones y 4 borrados
  1. BIN
      iot-platform-vue.rar
  2. 0 1
      src/components/by-table/index.js
  3. 8 1
      src/router/axios.js
  4. 3 2
      vue.config.js

BIN
iot-platform-vue.rar


+ 0 - 1
src/components/by-table/index.js

@@ -254,7 +254,6 @@ export default {
                 this.checkboxValue.push(items.label)
             })
             v.columnsCopy = JSON.parse(JSON.stringify(this.columns))
-
         },
     },
     created() {

+ 8 - 1
src/router/axios.js

@@ -73,7 +73,14 @@ axios.interceptors.response.use(
     if (statusWhiteList.includes(status)) return Promise.reject(res);
     //如果是401则跳转到登录页面
     if (status === 401)
-      store.dispatch("FedLogOut").then(() => router.push({ path: "/login" }));
+      store.dispatch("FedLogOut").then(() => {
+        if(window.__POWERED_BY_QIANKUN__){
+          window.location.href = window.location.origin + '/'
+        }else{
+          router.push({ path: "/login" })
+        }
+        // 
+      });
     // 如果请求为非200否者默认统一处理
     if (status !== 200) {
       Message({

+ 3 - 2
vue.config.js

@@ -28,7 +28,7 @@ module.exports = {
   // 		'vue': 'Vue',
   // 		'vue-router': 'VueRouter',
   // 		'vuex': 'Vuex',
-  // 		'axios': 'axios',
+  // 		'axios': 'axios',b                                    
   // 		'element-ui': 'ELEMENT',
   // 	});
   // 	const entry = config.entry('app');
@@ -48,7 +48,8 @@ module.exports = {
     proxy: {
       '/api': {
         //本地服务接口地址
-        target: 'http://36.134.91.96:10001/api',
+        //target: 'http://36.134.91.96:10001/api',
+        target: 'https://cfm.bytesail.cn/api',
         //远程演示服务地址,可用于直接启动项目
         //target: 'https://saber.bladex.vip/api',
         ws: true,