This commit is contained in:
2023-06-26 14:35:27 +08:00
parent b8796c15a2
commit b31766ce4c
8 changed files with 3111 additions and 3488 deletions

View File

@@ -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
},