diff --git a/pages/index/UserInfo.vue b/pages/index/UserInfo.vue
index b36b52d..ee1ae00 100644
--- a/pages/index/UserInfo.vue
+++ b/pages/index/UserInfo.vue
@@ -132,12 +132,15 @@
}
}).then(res => {
this.customInfo = res.data
- if (this.customInfo.avatar) {
- this.customInfo.avatar = config.baseImageUrl + this.customInfo.avatar
+ if (this.customInfo) {
+ setStorageWithExpiry("userInfo", this.customInfo)
+ this.generateUniCode(this.customInfo.uniqueCode)
+ if (this.customInfo.avatar) {
+ this.customInfo.avatar = config.baseImageUrl + this.customInfo.avatar
+ }
+ this.customInfo.roleNames = roleNames
}
- this.customInfo.roleNames = roleNames
- setStorageWithExpiry("userInfo", this.customInfo)
- this.generateUniCode(this.customInfo.uniqueCode)
+
})
} else {
this.customInfo = data
diff --git a/pages/index/countEmployees.vue b/pages/index/countEmployees.vue
index d53505c..9a4ad18 100644
--- a/pages/index/countEmployees.vue
+++ b/pages/index/countEmployees.vue
@@ -4,14 +4,10 @@
-
-
-
+
+
+