feature: change page title when route change (#1910)

This commit is contained in:
非空
2019-04-15 11:58:43 +08:00
committed by 花裤衩
parent 14580da5b3
commit 26d0f40df2
6 changed files with 37 additions and 10 deletions

View File

@@ -1,12 +1,12 @@
'use strict'
const path = require('path')
const pkg = require('./package.json')
const defaultSettings = require('./src/settings.js')
function resolve(dir) {
return path.join(__dirname, dir)
}
const name = pkg.name || 'vue-element-admin' // page title
const name = defaultSettings.title || 'vue Element Admin' // page title
const port = 9527 // dev port
// All configuration item explanations can be find in https://cli.vuejs.org/config/