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