From dc46a242306048ac558c287cdf8d421399cb4fdd Mon Sep 17 00:00:00 2001 From: 付延余 <f-yanyu@outlook.com> Date: 星期二, 21 三月 2023 11:11:39 +0800 Subject: [PATCH] code码调整 --- pages/customer-page/customer-my/customer-my.vue | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pages/customer-page/customer-my/customer-my.vue b/pages/customer-page/customer-my/customer-my.vue index 39a651b..04a2b1b 100644 --- a/pages/customer-page/customer-my/customer-my.vue +++ b/pages/customer-page/customer-my/customer-my.vue @@ -177,8 +177,12 @@ // 鏂板缓杞﹂槦 this.$reqPost('saveFleet', this.addGroupForm, 'params').then(res => { uni.hideLoading(); - console.log('鏂板缓杞﹂槦', res); - this.getFleet(); + if (res.code == 0) { + this.$u.toast('娣诲姞鎴愬姛'); + this.getFleet(); + } else { + this.$u.toast(res.data ? res.data : '娣诲姞澶辫触'); + } }); this.updateGroupShow = false; }, -- Gitblit v1.9.1