From a91bfc924f45ffd47367b28c253b5fc144d65ff5 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期三, 28 十二月 2022 14:38:46 +0800
Subject: [PATCH] #
---
pages/business/cstmr/addCsmtr.vue | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/pages/business/cstmr/addCsmtr.vue b/pages/business/cstmr/addCsmtr.vue
index 10f7e33..4527d80 100644
--- a/pages/business/cstmr/addCsmtr.vue
+++ b/pages/business/cstmr/addCsmtr.vue
@@ -144,7 +144,7 @@
// 闇�瑕佸湪onReady涓缃鍒�
this.$refs.baseForm.setRules(this.rules)
},
- mounted() {
+ onShow() {
// 鑾峰彇鐪佸競鍖�
this.citysData = test.citysData
this.baseUrl = uni.getStorageSync('baseUrl')
@@ -227,6 +227,15 @@
var res = result.data
if (res.code === 200) {
uni.navigateBack()
+ } else if (res.code === 403) {
+ uni.showToast({title: res.msg, icon: "none", position: 'top'})
+ setTimeout(() => {
+ uni.reLaunch({
+ url: '../../login/login'
+ });
+ }, 1000);
+ } else {
+ uni.showToast({title: res.msg, icon: "none",position: 'top'})
}
}
})
--
Gitblit v1.9.1