|
@ -407,13 +407,16 @@ export default { |
|
|
this.handleLogin(); |
|
|
this.handleLogin(); |
|
|
}, |
|
|
}, |
|
|
onShow() { |
|
|
onShow() { |
|
|
|
|
|
console.log("this.falt", this.falt); |
|
|
|
|
|
|
|
|
if (this.falt) { |
|
|
if (this.falt) { |
|
|
this.getAttributes(this.deviceId); // 根据设备id查找设备信息 |
|
|
this.getAttributes(this.deviceId); // 根据设备id查找设备信息 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
// 页面卸载时清除定时器 |
|
|
// 离开页面清除定时器 |
|
|
onUnload() { |
|
|
onHide() { |
|
|
clearTimeout(this.timer); |
|
|
console.log("页面即将卸载2"); |
|
|
|
|
|
clearTimeout(this.timer); // 清除定时器 |
|
|
}, |
|
|
}, |
|
|
}; |
|
|
}; |
|
|
</script> |
|
|
</script> |
|
|