sunlupeng 7 hónapja
szülő
commit
d7d08164a2
1 módosított fájl, 4 hozzáadás és 90 törlés
  1. 4 90
      src/permission.js

+ 4 - 90
src/permission.js

@@ -17,92 +17,6 @@ function hasPermission(roles, permissionRoles) {
 const whiteList = ['/login', '/authredirect']// no redirect whitelist
 //自定义路由
 const myRoles = [
-  'couponsManage', 
-  'couponsList', 
-
-  'answerGame', 
-  'answerList', 
-  
-  'raffleManage', 
-  'raffleList', 
-  'raffleDataList', 
-  'raffleLogsList',
-
-  'lotteryManage', 
-  'lotteryList', 
-  'lotteryDataList', 
-  'lotteryLogsList',
-
-  'giftManage', 
-  'giftExchangeRules', 
-  'giftList', 
-
-  'welfareManage', 
-  'welfareList', 
-
-  'exchangeManage', 
-  'exchangeList',
-
-  'cancelledList',
-  'approvalList',
-  'pasList',
-  'voidList',
-
-  'pointManage', 
-  'pointIndateList',
-  'pointInstructions', 
-  'pointRulesList', 
-  'pointList', 
-  'pointsDetailList',
-  'pointsPlusOrMinus',
-
-  'activityManage', 
-  'activityList', 
-
-  'noticeManage', 
-  'noticeList', 
-
-  'ranking',
-  'rankingList',
-
-  'medalManage', 
-  'medalList', 
-  'medalDataList',
-
-  'commendManage', 
-  'commendList',
-  'commendDataList', 
-  'citeList',
-  'operateCiteList',
-  'ceoCiteList',
-
-  'trainManage', 
-  'upLoadFileRules',
-  'trainList',
-  'operateTrainList',
-  'ceoTrainList',
-
-  'festivalManage', 
-  'festivalList', 
-
-  'certManage',
-  'certSetList', 
-  'certRules',
-  'certList', 
-
-  'postManage',
-  'postList',
-  'postApprovalList',
-
-  'rankingManage',
-  'answerRanking',
-  'gameRanking',
-
-  'content',
-  'yearLottoNotice',
-  'bannerManage',
-  'activeUsers',
-  'pointsLottery',
   //商品管理
   'goodsManage', 
   'goodsTypeList', 
@@ -208,9 +122,9 @@ router.beforeEach((to, from, next) => {
         }).catch(() => {
           store.dispatch('FedLogOut').then(() => {
             Message.error('Verification failed, please login again')
-            const prodHref = 'http://dgt.dgtis.com/oneportal/login';//正式地址
+            // const prodHref = 'http://dgt.dgtis.com/oneportal/login';//正式地址
 
-            // const prodHref = 'http://dgtcloud.dgtis.com/oneportal/login';//阿里云地址
+            const prodHref = 'http://dgtcloud.dgtis.com/oneportal/login';//阿里云地址
             
             const devHref = 'http://192.168.100.87:8080/oneportal/login';//测试地址
 
@@ -233,9 +147,9 @@ router.beforeEach((to, from, next) => {
     if (whiteList.indexOf(to.path) !== -1) { // 在免登录白名单,直接进入
       next()
     } else {
-      const prodHref = 'http://dgt.dgtis.com/oneportal/login';//正式地址
+      // const prodHref = 'http://dgt.dgtis.com/oneportal/login';//正式地址
 
-      // const prodHref = 'http://dgtcloud.dgtis.com/oneportal/login';//阿里云地址
+      const prodHref = 'http://dgtcloud.dgtis.com/oneportal/login';//阿里云地址
       
       const devHref = 'http://192.168.100.87:8080/oneportal/login';//测试地址