See999 5 years ago
parent
commit
3ce7cf76b5
1 changed files with 7 additions and 13 deletions
  1. 7 13
      src/store/modules/xt_user.js

+ 7 - 13
src/store/modules/xt_user.js View File

222
             this.commit('SET_URLFORS', {
222
             this.commit('SET_URLFORS', {
223
               urlfors: urlfors
223
               urlfors: urlfors
224
             })
224
             })
225
-            // console.log(222222222222,infoJSON)
226
           }else{
225
           }else{
227
             this.commit('SET_URLFORS', {
226
             this.commit('SET_URLFORS', {
228
               urlfors: infoJSON.urlfors
227
               urlfors: infoJSON.urlfors
234
             this.commit('SET_URLFORS', {
233
             this.commit('SET_URLFORS', {
235
               urlfors: urlfors
234
               urlfors: urlfors
236
             })
235
             })
237
-            // console.log(222222222222,infoJSON)
238
           }else{
236
           }else{
239
             this.commit('SET_URLFORS', {
237
             this.commit('SET_URLFORS', {
240
               urlfors: infoJSON.urlfors
238
               urlfors: infoJSON.urlfors
247
             this.commit('SET_URLFORS', {
245
             this.commit('SET_URLFORS', {
248
               urlfors: urlfors
246
               urlfors: urlfors
249
             })
247
             })
250
-            // console.log(222222222222,infoJSON)
251
           }else{
248
           }else{
252
             this.commit('SET_URLFORS', {
249
             this.commit('SET_URLFORS', {
253
               urlfors: infoJSON.urlfors
250
               urlfors: infoJSON.urlfors
278
                 mall_role_exist: data.mall_role_exist
275
                 mall_role_exist: data.mall_role_exist
279
               })
276
               })
280
 
277
 
281
-              let urlfors = infoJSON.urlfors
282
-              if(infoJSON.cdm_role_exist == true){
278
+              let urlfors = data.urlfors
279
+              if(data.cdm_role_exist == true){
283
                 console.log("有")
280
                 console.log("有")
284
                 urlfors.push("/slow")
281
                 urlfors.push("/slow")
285
                 this.commit('SET_URLFORS', {
282
                 this.commit('SET_URLFORS', {
286
                   urlfors: urlfors
283
                   urlfors: urlfors
287
                 })
284
                 })
288
-                // console.log(222222222222,infoJSON)
289
               }else{
285
               }else{
290
                 this.commit('SET_URLFORS', {
286
                 this.commit('SET_URLFORS', {
291
-                  urlfors: infoJSON.urlfors
287
+                  urlfors: data.urlfors
292
                 })
288
                 })
293
               }
289
               }
294
 
290
 
295
-              if(infoJSON.scrm_role_exist == true){
291
+              if(data.scrm_role_exist == true){
296
                 urlfors.push("/scrm")
292
                 urlfors.push("/scrm")
297
                 this.commit('SET_URLFORS', {
293
                 this.commit('SET_URLFORS', {
298
                   urlfors: urlfors
294
                   urlfors: urlfors
299
                 })
295
                 })
300
-                // console.log(222222222222,infoJSON)
301
               }else{
296
               }else{
302
                 this.commit('SET_URLFORS', {
297
                 this.commit('SET_URLFORS', {
303
-                  urlfors: infoJSON.urlfors
298
+                  urlfors: data.urlfors
304
                 })
299
                 })
305
               }
300
               }
306
 
301
 
307
-              if(infoJSON.mall_role_exist == true){
302
+              if(data.mall_role_exist == true){
308
                 console.log("有")
303
                 console.log("有")
309
                 urlfors.push("/shop")
304
                 urlfors.push("/shop")
310
                 this.commit('SET_URLFORS', {
305
                 this.commit('SET_URLFORS', {
311
                   urlfors: urlfors
306
                   urlfors: urlfors
312
                 })
307
                 })
313
-                // console.log(222222222222,infoJSON)
314
               }else{
308
               }else{
315
                 this.commit('SET_URLFORS', {
309
                 this.commit('SET_URLFORS', {
316
-                  urlfors: infoJSON.urlfors
310
+                  urlfors: data.urlfors
317
                 })
311
                 })
318
               }
312
               }
319
               
313