This repository was archived by the owner on Oct 30, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +521
-394
lines changed Expand file tree Collapse file tree 3 files changed +521
-394
lines changed Original file line number Diff line number Diff line change @@ -263,20 +263,22 @@ export default {
263
263
// },
264
264
},
265
265
async created () {
266
- this .cellLoading = true
267
- if (this .$store .state .userDetails [this .item .obj .userId ]) {
268
- this .item .obj [' userDetails' ] = this .$store .state .userDetails [this .item .obj .userId ]
269
- this .cellLoading = false
270
- } else {
271
- await axios .get (config .userdetails + this .item .obj .userId )
272
- .then ((response ) => {
273
- this .item .obj [' userDetails' ] = response .data .data [0 ]
274
- this .$store .state .userDetails [this .item .obj .userId ] = response .data .data [0 ]
266
+ if (this .item .obj .userId ) {
267
+ this .cellLoading = true
268
+ if (this .$store .state .userDetails [this .item .obj .userId ]) {
269
+ this .item .obj [' userDetails' ] = this .$store .state .userDetails [this .item .obj .userId ]
275
270
this .cellLoading = false
276
- })
277
- .catch ((error ) => {
278
- console .log (error)
279
- })
271
+ } else {
272
+ await axios .get (config .userdetails + this .item .obj .userId )
273
+ .then ((response ) => {
274
+ this .item .obj [' userDetails' ] = response .data .data [0 ]
275
+ this .$store .state .userDetails [this .item .obj .userId ] = response .data .data [0 ]
276
+ this .cellLoading = false
277
+ })
278
+ .catch ((error ) => {
279
+ console .log (error)
280
+ })
281
+ }
280
282
}
281
283
}
282
284
}
You can’t perform that action at this time.
0 commit comments