调整进入首页workspace报错问题需要观察是否还会出现

This commit is contained in:
X1627315083
2024-01-16 11:20:21 +08:00
parent df09fd1873
commit 0ce5862f92

View File

@@ -173,7 +173,7 @@ export default defineComponent({
setup(){
const store = useStore();
let workspaceItem:any = ref({
id:'',
id:-1,
id_:1,
workSpaceName:"工作台1",
putName:false,
@@ -457,7 +457,7 @@ export default defineComponent({
v.overallSingle = true
}
v.putName = false
if(v.id == (this.workspaceItem.id?this.workspaceItem.id:rv.id)){
if(v.id == (this.workspaceItem.id == -1 ?rv.id:this.workspaceItem.id)){
this.workspaceItem = v
this.setMannequinsSex()
this.setPosition('')
@@ -501,6 +501,9 @@ export default defineComponent({
},
putWorkspace(data:any,index:any){//修改workspace
if(this.workspaceItem.id == -1){
return
}
Https.axiosPost(Https.httpUrls.workspacesaveOrUpdate,data).then((rv: any) => {
if (rv) {
if(index){