修复pagetype列表页卡片和列表模式切换后全局生效的问题
This commit is contained in:
parent
d52c8687f3
commit
0ea7d5a3e9
@ -943,7 +943,9 @@ watch(() => route.params.entity, async (newEntity, oldEntity) => {
|
||||
page.value = 1
|
||||
searchQuery.value = ''
|
||||
selectedKeys.value = []
|
||||
filters.value = {} // 重置过滤条件
|
||||
filters.value = {}
|
||||
// 根据新entity重新加载视图模式(重要:修复全局生效的问题)
|
||||
viewMode.value = (localStorage.getItem(`genericListViewMode:${entity.value}`) as 'card' | 'list') || 'list'
|
||||
// 清空缓存(新entity使用新的缓存)
|
||||
linkTitleCache.value = {}
|
||||
// 重新加载元数据和数据
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user