perf: 优化loading

This commit is contained in:
zyn
2023-12-01 16:26:54 +08:00
parent a5e3fd56a7
commit d77dae6292
3 changed files with 28 additions and 20 deletions
+4 -4
View File
@@ -183,10 +183,10 @@ export default {
methods: {
onSearch () {
this.list = []
this.searchQuery.page = 1
// 返回顶部
this.$refs.scroll.scrollTo(0, 0)
this.getData()
// this.searchQuery.page = 1
// // 返回顶部
// this.$refs.scroll.scrollTo(0, 0)
this.getData(1)
},
getData (page) {
switch (this.$route.query.standType) {