vue js站点在生产中显示空白页面,而当我执行npm run build后它在开发模式下正常运行时,在我运行它时却变成空白... 我能做什么?为了那个原因?一切都在开发中正确运行,并且两种模式都没有任何错误
答案 0 :(得分:0)
尝试在本地而不是在CDdn上加载popper.min.js。
Access to script at 'https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js' from origin 'https://kamsham.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.