陶杰
2024-12-13 112e2bd2764dd96e1b81439a01882769100b92c1
sub_pages/supplier/sub-account/sub-account-switch-list.vue
@@ -32,14 +32,15 @@
   data() {
      return {
         curSubAccount:'',
         listApi:'/api/supplierSub/sub/all',
         listApi:'/api/supplierAccount/all',
      };
   },
   onLoad(options) { 
      this.getCurrentSubAccount()
      // this.getCurrentSubAccount()
   },
   onShow() {
      this.getList();
   async onShow() {
      await this.getList();
      this.getCurrentSubAccount()
   },
   async onPullDownRefresh() {
      this.getList();
@@ -48,7 +49,12 @@
      getCurrentSubAccount(){
         const currentInfo = this.$store.state.currentInfo
         this.curSubAccount=currentInfo?.supplierSub?.id
         if(this.currentInfo.supplierSub){
            this.curSubAccount=currentInfo?.supplierSub?.id
         }else{
            this.curSubAccount=this.list[0].id
         }
      },
      async handleSwitchSubAccount(item) {