refactor(andonDashboard): 移除自动刷新定时器

- 删除了 refreshTimer 属性
- 移除了每60秒自动刷新数据的功能
- 删除了组件销毁时清除定时器的逻辑
master
zangch@mesnac.com 2 months ago
parent 62042d158d
commit d49e29012b

@ -294,7 +294,6 @@ export default {
productLineList: [], productLineList: [],
updateTime: '', updateTime: '',
loading: false, loading: false,
refreshTimer: null,
// //
deviceStatus: { deviceStatus: {
totalDevices: 0, totalDevices: 0,
@ -353,15 +352,8 @@ export default {
created() { created() {
this.loadProductLines(); this.loadProductLines();
this.loadData(); this.loadData();
// 60
this.refreshTimer = setInterval(() => {
this.loadData();
}, 60000);
}, },
beforeDestroy() { beforeDestroy() {
if (this.refreshTimer) {
clearInterval(this.refreshTimer);
}
}, },
methods: { methods: {
loadProductLines() { loadProductLines() {

Loading…
Cancel
Save