摘要: 由于vue文件中只有一个Index.html 文件 title 显示需要通过vue-router来设置 1. router index.js文件中添加meta属性 2.在main.js 在每一个meta里面设置页面的title名字,最后在遍历 1.Vue.beforeEach(function(to 阅读全文
posted @ 2018-12-18 15:03 嘉煠 阅读(18039) 评论(0) 推荐(2) 编辑
摘要: vue项目中若要使用相对路径来获得相应静态资源, 在一般项目 build 之后都会生成一个 index.htm 文件和 一个 static 文件夹,而 static 这个文件夹需要被放置在根目录下, 1.需要找到config index.js(webpack 是依据index.js 来自动生成文件的 阅读全文
posted @ 2018-12-18 11:20 嘉煠 阅读(5197) 评论(0) 推荐(0) 编辑