位置:- 正文

vue 路由报错(vue路由点击没反应)

编辑:rootadmin
vue 路由报错

推荐整理分享vue 路由报错(vue路由点击没反应),希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:vue路由跳转报错,vue路由beforeeach,vue路由问题,vue路由不起作用,vue 路由报错props,Vue路由报错 via a navigationguard,Vue路由报错 via a navigationguard,vue 路由报错props,内容如对您有帮助,希望把文章链接给更多的朋友!

vue 路由报错(vue路由点击没反应)

在进行如下路由跳转时 const edit = (index: number) => { let row: any = categoryData.value[index]; router.push({ name: “commodityedit”, query: { id: row.id, name: row.name } }); };

遇到问题如下

TypeError: Failed to fetch dynamically imported module: http://localhost:4000/src/views/product/commodityedit.vue triggerError @ vue-router.esm-bundler.js:3325 (匿名) @ vue-router.esm-bundler.js:3057 Promise.catch(异步) pushWithRedirect @ vue-router.esm-bundler.js:3051 push @ vue-router.esm-bundler.js:2986 install @ vue-router.esm-bundler.js:3403 use @ runtime-core.esm-bundler.js:4327 (匿名) @ main.ts:19 vue-router.esm-bundler.js:72 [Vue Router warn]: Unexpected error when starting the router: TypeError: Failed to fetch dynamically imported module: http://localhost:4000/src/views/product/commodityedit.vue warn @ vue-router.esm-bundler.js:72 (匿名) @ vue-router.esm-bundler.js:3405 Promise.catch(异步) install @ vue-router.esm-bundler.js:3403 use @ runtime-core.esm-bundler.js:4327 (匿名) @ main.ts:19 client.ts:53 [vite] connected.

Uncaught (in promise) TypeError: Failed to fetch dynamically imported module: http://192.xxx.xxx.xx:4000/src/views/orderManage/TradeOrder/TradeOrder.vue

原因:有可能是路由文件名打错了 或者文件位置不对

本文链接地址:https://www.jiuchutong.com/zhishi/283449.html 转载请保留说明!
下一篇链接:https://www.jiuchutong.com/zhishi/283450.html
免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

鄂ICP备2023003026号

友情链接: 武汉网站建设 电脑维修 湖南楚通运网络