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