fix
This commit is contained in:
@@ -251,9 +251,8 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
let data = this.workspaceItem
|
let data = this.workspaceItem
|
||||||
delete data.isLastIndex
|
delete data.isLastIndex
|
||||||
this.putWorkspace(data,'')
|
this.putWorkspace(data,this.workspaceItem.id)
|
||||||
this.openType.model = false
|
this.openType.model = false
|
||||||
this.getDetail(this.workspaceItem.id)
|
|
||||||
// this.getDetail(this.workspaceItem.id)
|
// this.getDetail(this.workspaceItem.id)
|
||||||
this.store.commit("setWorkspace", this.workspaceItem);
|
this.store.commit("setWorkspace", this.workspaceItem);
|
||||||
}else{
|
}else{
|
||||||
@@ -531,16 +530,17 @@ export default defineComponent({
|
|||||||
// this.getDetail(index)
|
// this.getDetail(index)
|
||||||
}else{
|
}else{
|
||||||
}
|
}
|
||||||
this.getworkspace()
|
|
||||||
if(index){
|
if(index){
|
||||||
this.getDetail(index)
|
this.getDetail(index)
|
||||||
|
}else{
|
||||||
|
this.getworkspace()
|
||||||
}
|
}
|
||||||
this.workspace.workspaceList[index].workSpaceName = this.workspaceItemName
|
this.workspace.workspaceList[index].workSpaceName = this.workspaceItemName
|
||||||
this.workspace.workspaceList[index].putName = false
|
this.workspace.workspaceList[index].putName = false
|
||||||
this.openType.addWorkspace = false
|
this.openType.addWorkspace = false
|
||||||
}
|
}
|
||||||
}).catch((res)=>{
|
}).catch((res)=>{
|
||||||
this.getworkspace()
|
// this.getworkspace()
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
deleteWorkspace(data:any){
|
deleteWorkspace(data:any){
|
||||||
|
|||||||
@@ -16,6 +16,8 @@ const Workspace : Module<DesignDetail,RootState> = {
|
|||||||
},
|
},
|
||||||
mutations:{
|
mutations:{
|
||||||
setWorkspace(state,files){
|
setWorkspace(state,files){
|
||||||
|
console.log(files);
|
||||||
|
|
||||||
state.workspace = files
|
state.workspace = files
|
||||||
},
|
},
|
||||||
setWorkspaceSex(state,files){
|
setWorkspaceSex(state,files){
|
||||||
|
|||||||
Reference in New Issue
Block a user