lxf hai 1 semana
pai
achega
6c7223b01b
Modificáronse 1 ficheiros con 4 adicións e 12 borrados
  1. 4 12
      src/view/account/components/list.vue

+ 4 - 12
src/view/account/components/list.vue

@@ -203,30 +203,22 @@ export default {
     bus.$off('updateUserDayBalance', this.updateUserDayBalance)
   },
   activated () {
-    if (this.loading) {
-      bus.$on('updateUserDayBalance', this.updateUserDayBalance)
-      this.getUserDayBalanceList()
-      this.getOptionOrderList()
-      // this.getOptionOrderList1()
-    }
     this.$store.dispatch('getFollowAccount')
+    bus.$on('updateUserDayBalance', this.updateUserDayBalance)
+    this.getUserDayBalanceList()
+    this.getOptionOrderList()
   },
   created () {
-    bus.$on('updateUserDayBalance', this.updateUserDayBalance)
     if (!this.accountList.length) {
       this.getAccountList()
-    } else {
-      this.getUserDayBalanceList()
     }
-    this.getOptionOrderList()
-    // this.getOptionOrderList1()
+    this.getUserDayBalanceList()
   },
   methods: {
     getAccountList() {
       getAccountList().then((res) => {
         var list = res.list || []
         this.$store.commit('setAccountList',list)
-        this.getUserDayBalanceList()
       }).finally(() => {
         this.loading = true
       }).catch(() => {})