fix
This commit is contained in:
@@ -256,7 +256,7 @@ export default defineComponent({
|
||||
// this.getDetail(this.workspaceItem.id)
|
||||
this.store.commit("setWorkspace", this.workspaceItem);
|
||||
}else{
|
||||
this.getworkspace()
|
||||
this.getworkspace('detail')
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -342,7 +342,7 @@ export default defineComponent({
|
||||
// this.getPosition(resolve)
|
||||
// })
|
||||
await this.getPosition()//获取衣服类型
|
||||
this.getworkspace()
|
||||
this.getworkspace('')
|
||||
this.getSex()
|
||||
},
|
||||
directives:{
|
||||
@@ -454,7 +454,7 @@ export default defineComponent({
|
||||
// this.getworkspace()
|
||||
// this.setPosition('')
|
||||
},
|
||||
getworkspace(){
|
||||
getworkspace(str:any){
|
||||
// Https.axiosGet(Https.httpUrls.workspaceDetail,{params:{id:3}}).then((rv: any) => {
|
||||
// if (rv) {
|
||||
// console.log(rv,'workspace');
|
||||
@@ -479,6 +479,7 @@ export default defineComponent({
|
||||
// v.putName = false
|
||||
// });
|
||||
this.workspace.id = rv.id
|
||||
if(str == 'detail') this.getDetail(rv.id)
|
||||
this.total = rv.page.total
|
||||
this.workspace.workspaceList = rv.page.content
|
||||
}
|
||||
@@ -533,7 +534,7 @@ export default defineComponent({
|
||||
if(index){
|
||||
this.getDetail(index)
|
||||
}else{
|
||||
this.getworkspace()
|
||||
this.getworkspace('')
|
||||
}
|
||||
this.workspace.workspaceList[index].workSpaceName = this.workspaceItemName
|
||||
this.workspace.workspaceList[index].putName = false
|
||||
@@ -546,7 +547,7 @@ export default defineComponent({
|
||||
deleteWorkspace(data:any){
|
||||
Https.axiosDelete(Https.httpUrls.workspaceRemove,data).then((rv: any) => {
|
||||
if (rv) {
|
||||
this.getworkspace()
|
||||
this.getworkspace('')
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user