Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

菜单meta.keepAlive 属性无效 #325

Open
ha0xn36 opened this issue Dec 4, 2024 · 2 comments
Open

菜单meta.keepAlive 属性无效 #325

ha0xn36 opened this issue Dec 4, 2024 · 2 comments
Assignees

Comments

@ha0xn36
Copy link

ha0xn36 commented Dec 4, 2024

tdesign-vue-starter 版本

0.6.2

重现链接

/

重现步骤

根据文档设置https://tdesign.tencent.com/starter/docs/vue-next/router-menu,菜单meta.keepAlive 属性无效
import Layout from '@/layouts/index.vue'; export default [ { path: '/user', name: 'user', component: Layout, redirect: '/user/index', meta: { title: '系统设置', icon: 'setting' }, children: [ { path: 'index', name: 'UserIndex', component: () => import('@/pages/user/index.vue'), meta: { title: '个人信息', keepAlive: false }, }, { path: 'type', name: 'UserType', isAlive:false, component: () => import('@/pages/userType/index.vue'), meta: { title: '用户种类', keepAlive: false ,isAlive:false}, } ] }, ];

期望结果

根据文档设置https://tdesign.tencent.com/starter/docs/vue-next/router-menu,菜单meta.keepAlive 属性无效
import Layout from '@/layouts/index.vue'; export default [ { path: '/user', name: 'user', component: Layout, redirect: '/user/index', meta: { title: '系统设置', icon: 'setting' }, children: [ { path: 'index', name: 'UserIndex', component: () => import('@/pages/user/index.vue'), meta: { title: '个人信息', keepAlive: false }, }, { path: 'type', name: 'UserType', isAlive:false, component: () => import('@/pages/userType/index.vue'), meta: { title: '用户种类', keepAlive: false ,isAlive:false}, } ] }, ];

实际结果

无法刷新

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

Copy link

github-actions bot commented Dec 4, 2024

👋 @ha0xn36,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

Copy link

github-actions bot commented Dec 4, 2024

♥️ 有劳 @uyarn @timi137137 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @ha0xn36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants