fix: 注释mock请求,还原detection列表数据格式

This commit is contained in:
刘洪洪
2024-02-27 11:04:01 +08:00
parent d26f57993e
commit fdafad4c85
2 changed files with 5 additions and 5 deletions

View File

@@ -9,7 +9,7 @@ import commonMixin from '@/mixins/common'
import { cancelWithChange, noData, myHighLight } from '@/utils/tools' import { cancelWithChange, noData, myHighLight } from '@/utils/tools'
import { ClickOutside } from 'element-plus/lib/directives' import { ClickOutside } from 'element-plus/lib/directives'
import i18n from '@/i18n' import i18n from '@/i18n'
import '@/mock/index.js' // import '@/mock/index.js'
import hljsVuePlugin from '@highlightjs/vue-plugin' import hljsVuePlugin from '@highlightjs/vue-plugin'
import 'highlight.js/styles/color-brewer.css' import 'highlight.js/styles/color-brewer.css'
import '@/assets/css/main.scss' // 样式入口 import '@/assets/css/main.scss' // 样式入口

View File

@@ -703,10 +703,10 @@ export default {
if (response.status === 200) { if (response.status === 200) {
const data = response.data.data.result const data = response.data.data.result
if (data.length > 0) { if (data.length > 0) {
// data.forEach(item => { data.forEach(item => {
// item.eventInfoObj = JSON.parse(item.eventInfo) item.eventInfoObj = JSON.parse(item.eventInfo)
// item.startTime = parseFloat(item.startTime) item.startTime = parseFloat(item.startTime)
// }) })
this.listData = data this.listData = data
} else { } else {
this.listData = [] this.listData = []