no message
Former-commit-id: a4a8834f03829261665d2d461053dcec5e89bcc7 Former-commit-id: 43fd54234417b238873d9f83d9f6ceb2be533ef6 Former-commit-id: 5f9a2876151a60a490d1f15e294cb1ecccf45281
This commit is contained in:
@@ -29,14 +29,20 @@ export default {
|
||||
},
|
||||
mounted () {
|
||||
// 如果设置了在 mounted 后自动初始化 就在这里初始化
|
||||
if (this.autoInit) {
|
||||
this.init()
|
||||
}
|
||||
setTimeout(() => {
|
||||
if (this.autoInit) {
|
||||
this.$nextTick(() => {
|
||||
this.init()
|
||||
})
|
||||
}
|
||||
}, 300)
|
||||
},
|
||||
watch: {
|
||||
// 数据改变
|
||||
data () {
|
||||
this.changeData()
|
||||
this.$nextTick(() => {
|
||||
this.changeData()
|
||||
})
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
Reference in New Issue
Block a user