vue
The_Thinnest
我是蛋总。
展开
-
Newline required at end of file but not found
vue文件报错意思是:文件最后需要一个新空行,但未找到。解决:找到报错最后一行,回车出一个新空行,保存即可。原创 2020-02-03 13:54:12 · 853 阅读 · 0 评论 -
vue项目部署
1、更改项目下config文件夹index.js文件(标红处两个位置)build: { env: require('./prod.env'), index: path.resolve(__dirname, '../dist/index.html'), assetsRoot: path.resolve(__dirname, '../dist'), assetsSu原创 2017-07-03 17:15:50 · 1375 阅读 · 0 评论 -
vue打开新页面
原文地址:https://segmentfault.com/q/1010000010116819vue router是为单页面应用设计的,不管是push,replace都是在一个tab页面内进行的。所以,没有直接打开一个新页面的配置。用window.open吧。直接打开带根路径的路由地址。window.open(window.location.origin + '/a/b/转载 2017-10-19 17:04:05 · 22139 阅读 · 0 评论