|
@@ -132,7 +132,7 @@ import { getToken, removeToken } from "@/utils/auth";
|
|
|
import Cookies from "js-cookie";
|
|
|
import { getContent, getStaticContent, getLearnWebContent } from "@/api/api";
|
|
|
import { setI18nLang } from "@/utils/i18n";
|
|
|
-import { getConfigInfor } from "@/utils/index";
|
|
|
+import { getConfig } from "@/utils/auth";
|
|
|
|
|
|
export default {
|
|
|
name: "LayoutHeader",
|
|
@@ -411,9 +411,9 @@ export default {
|
|
|
this.is_exist = res.is_exist;
|
|
|
});
|
|
|
},
|
|
|
- async _getConfig() {
|
|
|
- this.configInfor = await getConfigInfor();
|
|
|
- },
|
|
|
+ // async _getConfig() {
|
|
|
+ // this.configInfor = await getConfigInfor();
|
|
|
+ // },
|
|
|
},
|
|
|
created() {},
|
|
|
mounted() {
|
|
@@ -433,7 +433,7 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
- _this._getConfig();
|
|
|
+ _this.configInfor = JSON.parse(getConfig());
|
|
|
_this.getLangList();
|
|
|
_this.getNotReadMessage();
|
|
|
_this.headTimer = setInterval(() => {
|