新增页面刷新时间

This commit is contained in:
ljx 2025-03-31 15:57:26 +08:00
parent 7ac2216419
commit 9df0e44a92
1 changed files with 8 additions and 5 deletions

View File

@ -260,10 +260,10 @@ export default {
let Aid = params.split('=')[1]; let Aid = params.split('=')[1];
this.Aid = Aid; this.Aid = Aid;
this.createdData(Aid) this.createdData(Aid)
let that = this; // let that = this;
setInterval(()=>{ // setInterval(()=>{
that.createdData(Aid) // that.createdData(Aid)
}, 900000) // }, 900000)
}, },
methods: { methods: {
createdData (Aid) { createdData (Aid) {
@ -295,7 +295,7 @@ export default {
const parsed = JSON.parse(jsonStr); const parsed = JSON.parse(jsonStr);
// 4. // 4.
const { row1Style, row2Style } = parsed; const { refreshTime , row1Style, row2Style } = parsed;
this.row1Style = row1Style; this.row1Style = row1Style;
this.row2Style = row2Style; this.row2Style = row2Style;
@ -352,6 +352,9 @@ export default {
} }
this.showData.name = data.setting.name; this.showData.name = data.setting.name;
setTimeout(()=>{
that.createdData(Aid)
}, Number(refreshTime)*1000)
this.loadingDone = true this.loadingDone = true
} }
}); });