Merge branch 'dev-3.10' of git.mesalab.cn:nezha/nezha-fronted into dev-3.11

This commit is contained in:
zyh
2024-07-02 17:12:10 +08:00

View File

@@ -3774,8 +3774,8 @@ export default {
lastHistory: [], lastHistory: [],
showChart: false, showChart: false,
showTable: false, showTable: false,
uplotChartInfo: lineData, uplotChartInfo: null,
uplotChartInfoLog: logData, uplotChartInfoLog: null,
uplotChartData: [], uplotChartData: [],
showAllData: false, showAllData: false,
supplementaryData: [], supplementaryData: [],
@@ -3783,6 +3783,10 @@ export default {
} }
}, },
async created () { async created () {
this.uplotChartInfo = this.$lodash.cloneDeep(lineData)
this.uplotChartInfo.id += Date.now()
this.uplotChartInfoLog = this.$lodash.cloneDeep(logData)
this.uplotChartInfoLog.id += Date.now()
this.init() this.init()
this.getPanelData() this.getPanelData()
this.resetExpression() this.resetExpression()