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