diff --git a/src/components/zidingyi/index.vue b/src/components/zidingyi/index.vue index 8763d4c..7ad41a5 100644 --- a/src/components/zidingyi/index.vue +++ b/src/components/zidingyi/index.vue @@ -260,10 +260,10 @@ export default { let Aid = params.split('=')[1]; this.Aid = Aid; this.createdData(Aid) - let that = this; - setInterval(()=>{ - that.createdData(Aid) - }, 900000) + // let that = this; + // setInterval(()=>{ + // that.createdData(Aid) + // }, 900000) }, methods: { createdData (Aid) { @@ -295,7 +295,7 @@ export default { const parsed = JSON.parse(jsonStr); // 4. 提取目标属性 - const { row1Style, row2Style } = parsed; + const { refreshTime , row1Style, row2Style } = parsed; this.row1Style = row1Style; this.row2Style = row2Style; @@ -352,6 +352,9 @@ export default { } this.showData.name = data.setting.name; + setTimeout(()=>{ + that.createdData(Aid) + }, Number(refreshTime)*1000) this.loadingDone = true } });