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