From 01138b4c3bfd1a69d3a3327e26c371f51fe46978 Mon Sep 17 00:00:00 2001 From: zhouhao <787329763@qq.com> Date: Wed, 03 Nov 2021 16:17:26 +0800 Subject: [PATCH] 解决门店详情保存只能点击一次问题 --- src/views/mine/stores/stores-detail.vue | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/views/mine/stores/stores-detail.vue b/src/views/mine/stores/stores-detail.vue index 3b501b3..7b0cd86 100644 --- a/src/views/mine/stores/stores-detail.vue +++ b/src/views/mine/stores/stores-detail.vue @@ -125,10 +125,10 @@ // 保存门店 Save() { - if (this.Btn) { - return; - } - this.Btn = true; + // if (this.Btn) { + // return; + // } + // this.Btn = true; let list = { addr: { province: { @@ -160,7 +160,9 @@ this.$api.storeEdit(list).then((res) => { this.Btn = false; this.$notify_success("保存成功!"); - }); + }).catch(err=>{ + this.Btn = false; + }) } }, -- Gitblit v1.8.0