新增页面刷新时间
This commit is contained in:
parent
7ac2216419
commit
9df0e44a92
|
|
@ -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
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue