refresh
This commit is contained in:
@@ -312,20 +312,20 @@ export default {
|
||||
disabled2: false
|
||||
}
|
||||
},
|
||||
// created () {
|
||||
// this.refresh()
|
||||
// },
|
||||
// beforeDestroy () {
|
||||
// clearInterval(this.timer)
|
||||
// this.timer = null
|
||||
// },
|
||||
created () {
|
||||
this.refresh()
|
||||
},
|
||||
beforeDestroy () {
|
||||
clearInterval(this.timer)
|
||||
this.timer = null
|
||||
},
|
||||
methods: {
|
||||
// refresh () {
|
||||
// this._queryDeviceInfo()
|
||||
// this.timer = setInterval(() => {
|
||||
// this._queryDeviceInfo()
|
||||
// }, this.interTime)
|
||||
// },
|
||||
refresh () {
|
||||
this._queryDeviceInfo()
|
||||
this.timer = setInterval(() => {
|
||||
this._queryDeviceInfo()
|
||||
}, this.interTime)
|
||||
},
|
||||
// 查询
|
||||
async _queryDeviceInfo () {
|
||||
let res = await queryDeviceInfo()
|
||||
|
||||
Reference in New Issue
Block a user