mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-11-10 13:28:32 +08:00
fix: 解决当打开多个标签后 退出会报错的问题 (#293)
* fix: 示例增加 suspense 代码解决打开多个标签后退出会报错的问题 * fix: 注释
This commit is contained in:
parent
bae62689f8
commit
4751ef8cb9
|
@ -12,8 +12,11 @@
|
|||
import { computed, ComputedRef } from 'vue';
|
||||
import { useTabsRouterStore } from '@/store';
|
||||
|
||||
// <suspense>标签属于实验性功能,请谨慎使用
|
||||
// 如果存在需解决/page/1=> /page/2 刷新数据问题 请修改代码 使用activeRouteFullPath 作为key
|
||||
// <suspense>
|
||||
// <component :is="Component" :key="activeRouteFullPath" />
|
||||
// </suspense>
|
||||
|
||||
// import { useRouter } from 'vue-router';
|
||||
// const activeRouteFullPath = computed(() => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user