#
whycq
2023-10-10 155f2b80f2a9b6f900c73f6e4461e9cebb7cd028
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'})
                     }
                  }
               })