vue打包npm run build時候界面報錯

用coding-pages打開後顯示Failed to load resource: the server responded with a status of 404 (Not Found), 解決方案: 方案一: 找到config裏的index.js,打開修改assetsPublicPath 爲「./」 方案二: 或者把index.html文件中的路徑/去掉; 下面是去掉後的,可以參考下 成功
相關文章
相關標籤/搜索