Commit 4aa61300 by 胡悦

提交

1 parent 7441db4b
...@@ -93,6 +93,7 @@ export default { ...@@ -93,6 +93,7 @@ export default {
}, },
watch: { watch: {
show(n) { show(n) {
console.log('=======', n, this.list)
if (n) this.init() if (n) this.init()
else this.scrollTop = 0 else this.scrollTop = 0
}, },
...@@ -101,7 +102,7 @@ export default { ...@@ -101,7 +102,7 @@ export default {
handler(newval) { handler(newval) {
this.pageNum = 1 this.pageNum = 1
this.scrollTop = 1000 this.scrollTop = 1000
this.list = []
setTimeout(() => { setTimeout(() => {
this.scrollTop = 0 this.scrollTop = 0
}, 100); }, 100);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!