fix: 解决当打开多个标签后 退出会报错的问题 (#293)

* fix: 示例增加 suspense 代码解决打开多个标签后退出会报错的问题

* fix: 注释
This commit is contained in:
PDieE 2022-09-06 13:02:43 +08:00 committed by GitHub
parent bae62689f8
commit 4751ef8cb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,8 +12,11 @@
import { computed, ComputedRef } from 'vue';
import { useTabsRouterStore } from '@/store';
// <suspense>使
// /page/1=> /page/2 使activeRouteFullPath key
// <component :is="Component" :key="activeRouteFullPath" />
// <suspense>
// <component :is="Component" :key="activeRouteFullPath" />
// </suspense>
// import { useRouter } from 'vue-router';
// const activeRouteFullPath = computed(() => {