刷
This commit is contained in:
@@ -365,6 +365,8 @@ export default {
|
||||
name: 'one',
|
||||
data () {
|
||||
return {
|
||||
interTime: this.$store.getters.setTime,
|
||||
timer: null,
|
||||
expand: false,
|
||||
top: '',
|
||||
left: '',
|
||||
@@ -412,8 +414,17 @@ export default {
|
||||
},
|
||||
mounted () {
|
||||
this.initData()
|
||||
this.refresh()
|
||||
},
|
||||
beforeDestroy () {
|
||||
clearInterval(this.timer)
|
||||
},
|
||||
methods: {
|
||||
refresh () {
|
||||
this.timer = setInterval(() => {
|
||||
this.initData()
|
||||
}, this.interTime)
|
||||
},
|
||||
expandTooltip () {
|
||||
this.expand = !this.expand
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user