Commit 70d0fea6 by 李伟康

文字喜报复位

1 parent a7da0993
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
<div <div
class="content" class="content"
v-html="data.text" v-html="data.text"
ref="textBox"
> >
</div> </div>
<van-button <van-button
...@@ -67,6 +68,9 @@ export default { ...@@ -67,6 +68,9 @@ export default {
watch: { watch: {
value (n) { value (n) {
this.show = n this.show = n
if (n && this.data.pushType == 5) this.$nextTick(() => {
this.$refs.textBox.scrollTop = 0
})
} }
}, },
mounted () { mounted () {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!