Comments (5)
你可以在包裹一层,路由菜单还是分离,比如叫做 router1 和 router2,router1 和router2 都有引入比如componentA这个组件,这样子,就可以去设置 router1 和 router2 是不是要缓存了。
from vue-element-plus-admin.
export const asyncRouterMap: AppRouteRecordRaw[] = [
{
path: '/product',
component: Layout,
redirect: '/product/xx',
name: 'Level',
meta: {
title: t('router.level'),
icon: 'carbon:skill-level-advanced'
},
children: [
{
path: 'y',
name: 'Menu3',
component: () => import('@/views/Level/Menu12.vue'),
meta: {
title: t('router.menu2')
}
},
{
path: 'z',
name: 'Menu4',
component: () => import('@/views/Level/Menu12.vue'),
meta: {
title: 'ddd'
}
}
]
}
]
是这个意思吗?demo能不能加一个例子,有点懵逼。谢谢。
from vue-element-plus-admin.
宏观金融
股指
原油
黑色板块
铁矿石
螺纹钢
..............
农产品
豆粕
.........
大概结构就是这样,菜单数量比较多,页面只是传的参数不一样
from vue-element-plus-admin.
@megamew 目前好像只能这样
from vue-element-plus-admin.
如果两个都要缓存 那不就不满足框架缓存的条件了吗
路由设置 name,且不能重复
路由对应的组件加上 name,与路由设置的 name 保持一致
from vue-element-plus-admin.
Related Issues (20)
- 菜单管理 新增 dialog里面的菜单类型缺少默认值 HOT 2
- 表格固定列后,鼠标放表格任意位置上,上下滑动不了 HOT 2
- FormSchema里面放自定义组件,form嵌套form之后,嵌套的form表单取不到值 HOT 1
- [vite] Internal server error: Failed to resolve import "./data/icons.ep" from "src/components/IconPicker/src/IconPicker.vue". Does the file exist? HOT 1
- Feature: 表单的 delSchema 方法在调用后建议将对应的 field 值删除
- 跨域问题
- Table中tooltip鼠标移开,悬浮框无法消失,只能切换 HOT 1
- i18n 国际化
- 创建动态路由后,访问自动跳转到404 HOT 2
- [Bug] DateRangePicker 中 calendar-change 事件注册时需要用 'calendar-change' 来注册,
- optionApi方法重复执行,导致接口重复调用
- 表格tooltip展示串行
- 在Form表单组件里增加自定义组件,获取不到value值 HOT 1
- 如果一个人多个role,怎么表示呢 HOT 1
- top模式时,菜单栏背景颜色会导致不协调
- 启动异常
- 配置CrudSchemas时表单组件样式配置失效 HOT 1
- 现在从github下载的源代码,在权限-菜单栏,点击编辑菜单名称等需要链表meta.什么的,全部都失效了
- Add a new component to edit code based on the selected programming language using monaco-editor. HOT 1
- 首页封装echarts组件,切换到其他标签页再回来echarts图标会存在空白问题,鼠标hover或者click的时候会回复 HOT 1
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 vue-element-plus-admin.