bugfix: 当前项目重新显示时like列表图片重叠

This commit is contained in:
zhangyh
2025-10-27 16:22:55 +08:00
parent d474af9bf7
commit c843628b1d
2 changed files with 12 additions and 1 deletions

View File

@@ -86,10 +86,21 @@ export default defineComponent({
return
}
// 检查是否需要重新初始化
const currentPath = route.fullPath
const storedPath = store.state.Workspace.projectPath
const isSameProject = currentPath === storedPath && data.openType === 'history'
if(data.openType == 'history'){
store.commit('setProjectPath',route.fullPath)
}
// 如果是同一个项目且openType为history跳过重新初始化
if(isSameProject){
data.dataLoad = false
return
}
nextTick(()=>{
if(query.history || query.id){
//切换新项目需要清除首次design提示