code refactor

This commit is contained in:
MaysWind
2024-07-16 00:18:43 +08:00
parent 26e9a0ef2a
commit 453a9ff61c
2 changed files with 88 additions and 48 deletions
@@ -448,7 +448,7 @@ export default {
} else if (this.queryAnalysisType === statisticsConstants.allAnalysisTypes.TrendAnalysis) {
return this.$locale.formatUnixTimeToLongYearMonth(this.userStore, getYearMonthFirstUnixTime(this.query.trendChartStartYearMonth));
} else {
return [];
return '';
}
},
queryEndTime() {
@@ -457,7 +457,7 @@ export default {
} else if (this.queryAnalysisType === statisticsConstants.allAnalysisTypes.TrendAnalysis) {
return this.$locale.formatUnixTimeToLongYearMonth(this.userStore, getYearMonthLastUnixTime(this.query.trendChartEndYearMonth));
} else {
return [];
return '';
}
},
allAnalysisTypes() {