vue js网站在生产中显示空白页

时间:2018-12-24 08:48:58

标签: vue.js vuejs2 vue-router vuetify.js

vue js站点在生产中显示空白页面,而当我执行npm run build后它在开发模式下正常运行时,在我运行它时却变成空白... 我能做什么?为了那个原因?一切都在开发中正确运行,并且两种模式都没有任何错误 enter image description here enter image description here

1 个答案:

答案 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.