瀏覽代碼

bug 修复

lilei 3 年之前
父節點
當前提交
c3aac14e59
共有 3 個文件被更改,包括 4 次插入4 次删除
  1. 1 1
      public/version.json
  2. 1 1
      src/store/modules/permission.js
  3. 2 2
      vue.config.js

+ 1 - 1
public/version.json

@@ -1,5 +1,5 @@
 {
   "message": "发现有新版本发布,确定更新系统?",
   "vendorJsVersion": "",
-  "version": 1653643110487
+  "version": 1653644206652
 }

+ 1 - 1
src/store/modules/permission.js

@@ -10,7 +10,7 @@ import { asyncRouterMap, constantRouterMap } from '@/config/router.config'
 function hasPermission (permission, route) {
   if (route.meta && route.meta.permission) {
     let flag = permission.find(item => {
-      return item&&route.meta.permission.indexOf(item)>=0
+      return item&&route.meta.permission.split(',').find(a => a == item)
     })
     // let flag = false
     // for (let i = 0, len = permission.length; i < len; i++) {

+ 2 - 2
vue.config.js

@@ -211,8 +211,8 @@ const vueConfig = {
     // If you want to turn on the proxy, please remove the mockjs /src/main.jsL11
     proxy: {
       '/api': {
-        target: 'http://192.168.16.151/qpls-md',
-        // target: 'http://p.iscm.360arrow.com/qpls-md',
+        // target: 'http://192.168.16.151/qpls-md',
+        target: 'http://p.iscm.360arrow.com/qpls-md',
         // ws: false,
         ws: true,
         changeOrigin: true,