瀏覽代碼

修改header

秦鹏 3 年之前
父節點
當前提交
42663c526a
共有 1 個文件被更改,包括 4 次插入1 次删除
  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(() => {