Commit 980c93a8 by 冒粤蓉

add title

1 parent 48a616ee
No preview for this file type
......@@ -35,6 +35,10 @@ const isChildRoute = path => childRoute.some(item => path.startsWith(item));
// const rawAppendChild = HTMLHeadElement.prototype.appendChild;
// const rawAddEventListener = window.addEventListener;
router.beforeEach((to, from, next) => {
// if (to.meta.title) {
// document.title = to.meta.title;
// }
// next();
// 从子项目跳转到主项目
// if(isChildRoute(from.path) && !isChildRoute(to.path)){
// HTMLHeadElement.prototype.appendChild = rawAppendChild;
......
......@@ -29,6 +29,12 @@ module.exports = {
},
// lintOnSave: false,
chainWebpack: config => {
config
.plugin('html')
.tap(args => {
args[0].title= '虎哥e盾'
return args
})
config.resolve.alias
.set("@", resolve("src"))
.set("styles", resolve("src/assets/css"))
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!