Browse Source

优化用户行为记录

zhengjinyi 1 year ago
parent
commit
5e38f375ce
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/user/record/list.vue

+ 2 - 2
src/views/user/record/list.vue

@@ -347,20 +347,20 @@ export default {
     // tab切换
     // tab切换
     handleClick(tab, event) {
     handleClick(tab, event) {
       if (tab.name === 'first') {
       if (tab.name === 'first') {
-        this.tabsCurrent = this.listQuery.todayType = 0
         if (this.$route.query.type) {
         if (this.$route.query.type) {
           this.handleInfo()
           this.handleInfo()
         } else {
         } else {
           this.listQuery = Object.assign({}, defaultListQuery)
           this.listQuery = Object.assign({}, defaultListQuery)
         }
         }
+        this.tabsCurrent = this.listQuery.todayType = 0
         this.getList()
         this.getList()
       } else if (tab.name === 'second') {
       } else if (tab.name === 'second') {
-        this.tabsCurrent = this.listQuery.todayType = 1
         if (this.$route.query.type) {
         if (this.$route.query.type) {
           this.handleInfo()
           this.handleInfo()
         } else {
         } else {
           this.listQuery = Object.assign({}, defaultListQuery)
           this.listQuery = Object.assign({}, defaultListQuery)
         }
         }
+        this.tabsCurrent = this.listQuery.todayType = 1
         this.getList()
         this.getList()
       }
       }
     },
     },