From 0ce5862f925fee5b45173d4dd4a8cfb646a615f8 Mon Sep 17 00:00:00 2001 From: X1627315083 <1627315083@qq.com> Date: Tue, 16 Jan 2024 11:20:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=BF=9B=E5=85=A5=E9=A6=96?= =?UTF-8?q?=E9=A1=B5workspace=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E8=A7=82=E5=AF=9F=E6=98=AF=E5=90=A6=E8=BF=98=E4=BC=9A?= =?UTF-8?q?=E5=87=BA=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/Detail/habit.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/component/Detail/habit.vue b/src/component/Detail/habit.vue index 50dda54a..70978f8c 100644 --- a/src/component/Detail/habit.vue +++ b/src/component/Detail/habit.vue @@ -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){