在啟動(dòng)vue項(xiàng)目時(shí)稚晚,出現(xiàn)Cannot GET /提示,原因是之前修改了config下index.js的assetsPublicPath
錯(cuò)誤提示:
Refused to load the image 'http://localhost:8075/favicon.ico' because it violates the following Content Security Policy directive: "default-src 'none'". Note that 'img-src' was not explicitly set, so 'default-src' is used as a fallback.
解決方法:
將config下index.js中的 assetsPublicPath: './'改成`assetsPublicPath: '/'即可型诚。
正常啟動(dòng)