From 155f2b80f2a9b6f900c73f6e4461e9cebb7cd028 Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期二, 10 十月 2023 17:12:20 +0800 Subject: [PATCH] # --- pages/business/cstmr/addCsmtr.vue | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/pages/business/cstmr/addCsmtr.vue b/pages/business/cstmr/addCsmtr.vue index 10f7e33..569908b 100644 --- a/pages/business/cstmr/addCsmtr.vue +++ b/pages/business/cstmr/addCsmtr.vue @@ -50,7 +50,6 @@ export default { data() { return { - baseUrl: '', cstmrTypes: [], cstmrType: '', directors: [], @@ -144,10 +143,9 @@ // 闇�瑕佸湪onReady涓缃鍒� this.$refs.baseForm.setRules(this.rules) }, - mounted() { + onShow() { // 鑾峰彇鐪佸競鍖� this.citysData = test.citysData - this.baseUrl = uni.getStorageSync('baseUrl') this.autoLoad('cstmrType','') this.autoLoad('user','') }, @@ -227,6 +225,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