2023-11-24
This commit is contained in:
@@ -418,6 +418,7 @@ export default defineComponent({
|
||||
|
||||
},
|
||||
putWorkspace(data:any,index:any){//修改workspace
|
||||
data.workSpaceName = this.workspaceItemName
|
||||
Https.axiosPost(Https.httpUrls.workspacesaveOrUpdate,data).then((rv: any) => {
|
||||
if (rv) {
|
||||
if(index){
|
||||
@@ -425,8 +426,14 @@ export default defineComponent({
|
||||
}else{
|
||||
this.getworkspace()
|
||||
}
|
||||
this.workspace.workspaceList[index].workSpaceName = this.workspaceItemName
|
||||
this.workspace.workspaceList[index].putName = false
|
||||
this.openType.addWorkspace = false
|
||||
console.log(123);
|
||||
|
||||
}
|
||||
}).catch((res)=>{
|
||||
console.log(321);
|
||||
});
|
||||
},
|
||||
deleteWorkspace(data:any){
|
||||
@@ -491,7 +498,6 @@ export default defineComponent({
|
||||
workSpaceName:this.workspaceItemName,
|
||||
}
|
||||
this.putWorkspace(data,'')
|
||||
this.openType.addWorkspace = false
|
||||
}else{
|
||||
let data:any
|
||||
this.workspace.workspaceList.forEach((item:any)=>{
|
||||
@@ -499,10 +505,8 @@ export default defineComponent({
|
||||
data = item
|
||||
}
|
||||
})
|
||||
data.workSpaceName = this.workspaceItemName
|
||||
this.putWorkspace(data,'')
|
||||
this.workspace.workspaceList[index].workSpaceName = this.workspaceItemName
|
||||
this.workspace.workspaceList[index].putName = false
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user