2020
10-09
10-09
vue打包npm run build时候界面报错的解决
用coding-pages打开后显示Failedtoloadresource:theserverrespondedwithastatusof404(NotFound),解决方案:方案一:找到config里的index.js,打开修改assetsPublicPath为“./”方案二:或者把index.html文件中的路径/去掉;下面是去掉后的,可以参考下成功了!补充知识:启动vue项目npmrundev时报errno-4058进入到项目目录下,shift+右键打开cmd执行npminstall然后再执行npmrundev或者你留意一下项目是不...
继续阅读 >