Comments (4)
应该是原框架有个依赖出问题了,据说是webpack的原因,具体原因不详。原作者也没有更新。
我这个找到个解决办法
store/modules/permission.js
export const loadView = (view) => { // 路由懒加载 return () => impot("@/views${view}") }
修改为
export const loadView = (view) => { // 路由懒加载 return (resolve) => require(["@/views${view}"], resolve) }
就可以了
https://github.com/PanJiaChen/vue-element-admin/issues/3129
from go-admin-ui.
vue-router.esm.js:1897 Error: Cannot find module '@/views/sysuser/index'
at webpackEmptyContext (index.js:39)
at permission.js:94
from go-admin-ui.
同问
from go-admin-ui.
@aixwlove 6666!我修改成:export const loadView = (view) => {
// 路由懒加载
return (resolve) => require([@/views${view}
], resolve)
} 之后就好了。发现那个老板键显示不出来啊。
from go-admin-ui.
Related Issues (20)
- Vue3订阅版本的功能模块 HOT 1
- 编译完成无法访问后端 HOT 1
- npm run dev 如何解决elemen-ui 编译时的警告呢? HOT 1
- arco-design-vue3 版本页面中没有面包屑、tab之类的导航栏,进入子页面会迷路 HOT 1
- 关于二级目录下的菜单缓存问题 HOT 6
- 代码生成--编辑,去掉关联表提交后无效,再次打开仍然有之前选择的关联表
- 代码生成--生成的代码,必填字段对应到查询字段了 HOT 1
- 生成的代码,操作栏的修改和删除不起作用 HOT 1
- TypeError: Cannot read properties of undefined (reading 'version') HOT 1
- Docker部署,表单构建和系统接口两个菜单功能异常 HOT 2
- 为什么有时候按钮上会出现乱码
- Syntax Error: ReferenceError: globalThis is not defined HOT 1
- vue3_dev分支 HOT 1
- 为什么没有Arco Design框架的了? HOT 1
- npm run dev HOT 3
- vue3 arco design 页面渲染问题 HOT 3
- baseURL被改错了 HOT 6
- 怎么把让这个项目支付node.js 20.10.0版本以上的 HOT 6
- 前端这块以后主要维护vue3_dev分支吗? HOT 1
- npm install失败 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-admin-ui.