See999 il y a 5 ans
Parent
révision
3c949bed26
1 fichiers modifiés avec 6 ajouts et 6 suppressions
  1. 6 6
      src/store/modules/xt_user.js

+ 6 - 6
src/store/modules/xt_user.js Voir le fichier

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