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'}) } } })