|
@@ -1,13 +1,14 @@
|
|
|
-// let fn = require("./utils/auth");
|
|
|
-// console.log(fn);
|
|
|
-// let title = ''
|
|
|
-// if (fn.getConfig()) {
|
|
|
-// let config = JSON.parse(fn.getConfig());
|
|
|
-// title = config.title
|
|
|
-// }
|
|
|
-// console.log(title);
|
|
|
+const Cookies = require("js-cookie");
|
|
|
+console.log(Cookies);
|
|
|
+let title = ''
|
|
|
+let config = Cookies.get('GCLS_Config')
|
|
|
+if (config) {
|
|
|
+ let configObj = JSON.parse(config);
|
|
|
+ title = configObj.title
|
|
|
+}
|
|
|
+console.log(title);
|
|
|
module.exports = {
|
|
|
- title: '教学平台',
|
|
|
+ title: title,
|
|
|
|
|
|
/**
|
|
|
* @type {boolean} true | false
|