Commit 29f0d82b authored by yaya's avatar yaya

feat: 优化

parent 319e67dd
......@@ -92,18 +92,6 @@ export default {
this.handleGetCategory()
},
methods: {
// 切换时间周期
handlerChange(e) {
console.log('---切换时间周期--', e)
if (e === '近1天') {
this.listQuery.cycle = 1
} else if (e === '近7天') {
this.listQuery.cycle = 2
} else if (e === '近1月') {
this.listQuery.cycle = 3
}
this.handleGetCategory()
},
handlerSelectCateGory(categoryStr) {
if (categoryStr === this.listQuery.category) {
return
......
......@@ -106,9 +106,9 @@ export default {
if (e === '近1天') {
this.listQuery.cycle = 1
} else if (e === '近7天') {
this.listQuery.cycle = 2
this.listQuery.cycle = 7
} else if (e === '近1月') {
this.listQuery.cycle = 3
this.listQuery.cycle = 30
}
this.handleGetCategory()
},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment