fix: 多个滚动列表之间切换时,页面不刷新导致的样式BUG (#152)

修复 #151
This commit is contained in:
Kerwin Bryant 2022-05-12 15:51:41 +08:00 committed by GitHub
parent 59a85157a9
commit 3244c18a8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,7 +169,7 @@ export default defineComponent({
const { showBreadcrumb, showFooter, isUseTabsRouter } = settingStore;
const { tabRouters } = tabsRouterStore;
return (
<t-layout class={[`${prefix}-layout`]}>
<t-layout class={[`${prefix}-layout`]} key={route.name}>
{isUseTabsRouter && (
<t-tabs
theme="card"