See999 5 年前
父节点
当前提交
3c949bed26
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 6 6
      src/store/modules/xt_user.js

+ 6 - 6
src/store/modules/xt_user.js 查看文件

@@ -216,7 +216,7 @@ const xt_user = {
216 216
 
217 217
           
218 218
           let urlfors = infoJSON.urlfors
219
-          if(infoJSON.cdm_role_exist == undefined){
219
+          if(infoJSON.cdm_role_exist == true){
220 220
             console.log("有")
221 221
             urlfors.push("/slow")
222 222
             this.commit('SET_URLFORS', {
@@ -229,7 +229,7 @@ const xt_user = {
229 229
             })
230 230
           }
231 231
 
232
-          if(infoJSON.scrm_role_exist == undefined){
232
+          if(infoJSON.scrm_role_exist == true){
233 233
             urlfors.push("/scrm")
234 234
             this.commit('SET_URLFORS', {
235 235
               urlfors: urlfors
@@ -241,7 +241,7 @@ const xt_user = {
241 241
             })
242 242
           }
243 243
 
244
-          if(infoJSON.mall_role_exist != undefined){
244
+          if(infoJSON.mall_role_exist == true){
245 245
             console.log("有")
246 246
             urlfors.push("/shop")
247 247
             this.commit('SET_URLFORS', {
@@ -279,7 +279,7 @@ const xt_user = {
279 279
               })
280 280
 
281 281
               let urlfors = infoJSON.urlfors
282
-              if(infoJSON.cdm_role_exist == undefined){
282
+              if(infoJSON.cdm_role_exist == true){
283 283
                 console.log("有")
284 284
                 urlfors.push("/slow")
285 285
                 this.commit('SET_URLFORS', {
@@ -292,7 +292,7 @@ const xt_user = {
292 292
                 })
293 293
               }
294 294
 
295
-              if(infoJSON.scrm_role_exist == undefined){
295
+              if(infoJSON.scrm_role_exist == true){
296 296
                 urlfors.push("/scrm")
297 297
                 this.commit('SET_URLFORS', {
298 298
                   urlfors: urlfors
@@ -304,7 +304,7 @@ const xt_user = {
304 304
                 })
305 305
               }
306 306
 
307
-              if(infoJSON.mall_role_exist == undefined){
307
+              if(infoJSON.mall_role_exist == true){
308 308
                 console.log("有")
309 309
                 urlfors.push("/shop")
310 310
                 this.commit('SET_URLFORS', {