zhangqiOMG 2 anos atrás
pai
commit
b5874055d0
2 arquivos alterados com 11 adições e 5 exclusões
  1. 9 3
      src/utils/tool.js
  2. 2 2
      vue.config.js

+ 9 - 3
src/utils/tool.js

@@ -1,5 +1,6 @@
 import { Message } from 'element-ui';
 import router from '@/router';
+import api from '@/api/api';
 export default {
   // 获取应用权限
   checkAuth (appname,auth) {
@@ -18,10 +19,15 @@ export default {
       return _haveAuth
       
     } catch (error) {
-
+      api.requested({
+        classname:"system.tools",
+        method:"saveWebClientErrLog",
+        content:{
+          "keyname":'auth',
+          "log":error
+        }
+      })
     }
-    
-   
   },
 
   // 获取应用表格

+ 2 - 2
vue.config.js

@@ -14,8 +14,8 @@ module.exports = {
       port: 8000,
       proxy: {
         '/apis': {
-          // target: 'http://61.164.207.46:8000',  // target host*/
-          target: 'https://oms.idcgroup.com.cn:8079/',  // target host
+          target: 'http://61.164.207.46:8000',  // target host*/
+          // target: 'https://oms.idcgroup.com.cn:8079/',  // target host
           // target: 'localhost:8080',  // target host
           ws: true,  // proxy websockets 
           changeOrigin: true,  // needed for virtual hosted sites