vue cli 使用npm run dev 报错Cannot GET /

用vue cli搭建的webpack项目之前还是正常运行的 突然不知道为什么就cannot get了 试了各种办法最后通过
config/index.js里的dev: {assetsPublicPath: '/',}改成了assetsPublicPath: './' 问题得到解决 

猜你喜欢

转载自blog.csdn.net/qq_24510455/article/details/80828837
今日推荐