Skip to content

Commit 3244c18

Browse files
authored
fix: 多个滚动列表之间切换时,页面不刷新导致的样式BUG (#152)
修复 #151
1 parent 59a8515 commit 3244c18

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/layouts/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export default defineComponent({
169169
const { showBreadcrumb, showFooter, isUseTabsRouter } = settingStore;
170170
const { tabRouters } = tabsRouterStore;
171171
return (
172-
<t-layout class={[`${prefix}-layout`]}>
172+
<t-layout class={[`${prefix}-layout`]} key={route.name}>
173173
{isUseTabsRouter && (
174174
<t-tabs
175175
theme="card"

0 commit comments

Comments
 (0)