修复打开高级工具出现重复问题

This commit is contained in:
X1627315083
2025-10-13 17:12:58 +08:00
parent d1e31c6d38
commit 022213272d

View File

@@ -62,11 +62,13 @@ export default defineComponent({
newPorject:null as any,
chatDom:null as any,
})
watch(() => data.selectObject.styleId,()=>{
if((data.selectObject?.id == route.query?.history) && route.query?.history){
getHistory(route.query.history)
}
})
//切换风格更新模特 更新设置交互变更
// watch(() => data.selectObject.styleId,(newVal,oldVal)=>{
// if(newVal == oldVal || !oldVal)return
// if((data.selectObject?.id == route.query?.history) && route.query?.history){
// getHistory(route.query.history)
// }
// })
watch(() => route.query,
(query:any, oldQuery:any) => {
@@ -121,14 +123,11 @@ export default defineComponent({
store.commit("clearAllBoardData",item);
})
}
const getHistory = (id:any)=>{
let value = {
id,
}
if(!id)return
data.isShowMark = false
if(!id)return data.isShowMark = false
Https.axiosPost(Https.httpUrls.selectHistoryProject,value).then((rv: any) => {
setProjectData(rv)
}).catch((res)=>{
@@ -177,7 +176,6 @@ export default defineComponent({
data.selectObject.positionList = position
storeData.positionList = position
store.commit('setProbject',storeData)
// setChatData()
if(route.name == 'tools'){
getCollection('tools',null)
@@ -224,6 +222,7 @@ export default defineComponent({
}
data.isShowMark = true
Https.axiosPost(Https.httpUrls.getModuleContent,value).then(async (rv)=>{
store.commit('clearAllCollection')
if(rv.uploadElement){//toproduct、relight、poseTransfer
let uploadElementData = {
str:'add',