fix:修改时间格式的相关错误

This commit is contained in:
zhangyu
2022-01-04 14:27:28 +08:00
parent af980817dd
commit 55203ef0ea
6 changed files with 8 additions and 7 deletions

View File

@@ -218,7 +218,7 @@ export default {
this.tableData = []
this.tableDataCopy = ''
setTimeout(() => {
this.$get('/prom/api/v1/query?query=' + encodeURIComponent("{endpoint_id='" + this.currentEndpoint.id + "'}") + '&time=' + this.$stringTimeParseToUnix(new Date(this.formatTime).getTime())).then(response => {
this.$get('/prom/api/v1/query?query=' + encodeURIComponent("{endpoint_id='" + this.currentEndpoint.id + "'}") + '&time=' + this.$stringTimeParseToUnix(bus.formateTimeToTime(this.formatTime))).then(response => {
this.loading = false
if (response.status === 'success') {
const results = response.data.result