|
@@ -20,6 +20,8 @@
|
|
|
//例如:import 《组件名称》from ‘《组件路径》';
|
|
|
import { getStaticContent } from "@/api/ajax";
|
|
|
import { setToken, removeToken } from "@/utils/auth";
|
|
|
+import { getConfigInfor } from "@/utils/index";
|
|
|
+import getPageTitle from '@/utils/get-page-title'
|
|
|
|
|
|
export default {
|
|
|
//import引入的组件需要注入到对象中才能使用
|
|
@@ -53,6 +55,7 @@ export default {
|
|
|
id: "002-20211011-10-GOLXUZST4G",
|
|
|
},
|
|
|
loading: null,
|
|
|
+ configInfor: null
|
|
|
};
|
|
|
},
|
|
|
//计算属性 类似于data概念
|
|
@@ -100,9 +103,14 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
+ async _getConfig() {
|
|
|
+ this.configInfor = await getConfigInfor();
|
|
|
+ document.title = getPageTitle()
|
|
|
+ },
|
|
|
},
|
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
|
created() {
|
|
|
+ this._getConfig();
|
|
|
this.loading = this.$loading({
|
|
|
lock: true,
|
|
|
text: "跳转中",
|