Browse Source

修改header

秦鹏 3 năm trước cách đây
mục cha
commit
42663c526a
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      src/components/Header.vue

+ 4 - 1
src/components/Header.vue

@@ -316,7 +316,10 @@ export default {
     if (user) {
       _this.userMessage = JSON.parse(user);
     }
-    _this.configInfor = JSON.parse(getConfig());
+    let config = getConfig();
+    if (config) {
+      _this.configInfor = JSON.parse(config);
+    }
     _this.getLangList();
     _this.headTimer = _this.getNotReadMessage();
     setInterval(() => {