|
@@ -80,13 +80,15 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted () {
|
|
mounted () {
|
|
- this.$refs.table.refresh(true)
|
|
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.$refs.table.refresh(true)
|
|
|
|
+ })
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
onlineFalg (newValue, oldValue) {
|
|
onlineFalg (newValue, oldValue) {
|
|
const _this = this
|
|
const _this = this
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
- _this.$refs.table.refresh(true)
|
|
|
|
|
|
+ _this.$refs.table && _this.$refs.table.refresh(true)
|
|
}, 400)
|
|
}, 400)
|
|
}
|
|
}
|
|
}
|
|
}
|