#
whycq
2022-12-28 cce6dc1eb47dbb08c7cc243a22f967977c0d856a
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'})
                     }
                  }
               })