修复对话生成没有更新树
This commit is contained in:
@@ -29,7 +29,7 @@ const projectStore = useProjectStore()
|
||||
let oldProjectId:any = ''
|
||||
watch(()=>props.versionTreeData?.drawer, (newVal, oldVal) => {
|
||||
console.log(newVal,oldProjectId,projectStore.state.id)
|
||||
if(newVal && oldProjectId !== projectStore.state.id && projectStore.state.id){
|
||||
if(newVal || (oldProjectId !== projectStore.state.id && projectStore.state.id)){
|
||||
getVersionTree()
|
||||
oldProjectId = JSON.parse(JSON.stringify(projectStore.state.id))
|
||||
}
|
||||
@@ -41,6 +41,7 @@ const getVersionTree = ()=>{
|
||||
}).then(res => {
|
||||
if(!res)return
|
||||
setVersionsList([res])
|
||||
treeKey.value++
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user