diff --git a/src/main.js b/src/main.js index f35bf44e..dfd64f4f 100644 --- a/src/main.js +++ b/src/main.js @@ -9,7 +9,7 @@ import commonMixin from '@/mixins/common' import { cancelWithChange, noData, myHighLight } from '@/utils/tools' import { ClickOutside } from 'element-plus/lib/directives' import i18n from '@/i18n' -import '@/mock/index.js' +// import '@/mock/index.js' import hljsVuePlugin from '@highlightjs/vue-plugin' import 'highlight.js/styles/color-brewer.css' import '@/assets/css/main.scss' // 样式入口 diff --git a/src/views/detections/Index.vue b/src/views/detections/Index.vue index 394d288e..87717355 100644 --- a/src/views/detections/Index.vue +++ b/src/views/detections/Index.vue @@ -703,10 +703,10 @@ export default { if (response.status === 200) { const data = response.data.data.result if (data.length > 0) { - // data.forEach(item => { - // item.eventInfoObj = JSON.parse(item.eventInfo) - // item.startTime = parseFloat(item.startTime) - // }) + data.forEach(item => { + item.eventInfoObj = JSON.parse(item.eventInfo) + item.startTime = parseFloat(item.startTime) + }) this.listData = data } else { this.listData = []