소스 검색

优化用户行为记录

zhengjinyi 1 년 전
부모
커밋
5e38f375ce
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/views/user/record/list.vue

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

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