puzzle icon indicating copy to clipboard operation
puzzle copied to clipboard

core.f5dcb2c61d39e134ede4.dll.js:7 ChunkLoadError: Loading chunk test/views/views-puzzlesDetail failed.

Open 15738039217 opened this issue 3 years ago • 3 comments

(missing: http://localhost:8080/test/puzzles/test/views/views-puzzlesDetail.241ab6a9529a0243af03.js) 为什么组件js 文件的路径 会多一个一个路径呢,正常路径http://localhost:8080/puzzles/test/views/views-puzzlesDetail.241ab6a9529a0243af03.js),

15738039217 avatar Nov 06 '20 05:11 15738039217

不太清楚,这个应该和你的配置有关系

CyberFei avatar Nov 06 '20 06:11 CyberFei

谢谢了,但是能指导一下 项目修改成  路由mode: "history", 的一个思路嘛,目前修改的是 router.js// 创建一个路由器实例 const router = new VueRouter({ mode: "history", // base: "", routes: [], // 设置滚动条位置 scrollBehavior: to => { if (document.getElementById("con")) { if (to.meta.scrollTop) document.getElementById("con").scrollTop = to.meta.scrollTop; else document.getElementById("con").scrollTop = 0; } } });// history 模式 historyApiFallback: { index: "/index.html" }打包后部署到环境,总是找不到 js模块,似乎部署的路径 和项目文件路径有关系,

------------------ 原始邮件 ------------------ 发件人: "CyberFei/puzzle" <[email protected]>; 发送时间: 2020年11月6日(星期五) 下午2:01 收件人: "CyberFei/puzzle"<[email protected]>; 抄送: "梦什么想"<[email protected]>;"Author"<[email protected]>; 主题: Re: [CyberFei/puzzle] core.f5dcb2c61d39e134ede4.dll.js:7 ChunkLoadError: Loading chunk test/views/views-puzzlesDetail failed. (#28)

不太清楚,这个应该和你的配置有关系

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

15738039217 avatar Nov 06 '20 07:11 15738039217

history目前好像有点问题,我抽时间会找一下原因

CyberFei avatar Nov 06 '20 07:11 CyberFei