|
@@ -1,12 +1,18 @@
|
|
|
'use strict'
|
|
|
const path = require('path')
|
|
|
const defaultSettings = require('./src/settings.js')
|
|
|
+import { getConfig } from "@/utils/auth";
|
|
|
|
|
|
function resolve(dir) {
|
|
|
return path.join(__dirname, dir)
|
|
|
}
|
|
|
+let title = ''
|
|
|
+if (getConfig()) {
|
|
|
+ let config = JSON.parse(getConfig());
|
|
|
+ title = config.title
|
|
|
+}
|
|
|
|
|
|
-const name = defaultSettings.title || '全球汉语教学平台' // page title
|
|
|
+const name = defaultSettings.title || title // page title
|
|
|
|
|
|
// If your port is set to 80,
|
|
|
// use administrator privileges to execute the command line.
|