feat(logs): add quick record flow and reason tags
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { defineStore } from 'pinia'
|
||||
import * as api from '@/api'
|
||||
import { normalizeReasonTags, getReasonLabels } from '@/config/smoke-reasons'
|
||||
|
||||
export const useLogsStore = defineStore('logs', {
|
||||
state: () => ({
|
||||
@@ -126,6 +127,8 @@ export const useLogsStore = defineStore('logs', {
|
||||
return {
|
||||
...log,
|
||||
type,
|
||||
reasonTags: normalizeReasonTags(log.reason_tags),
|
||||
reasonLabels: getReasonLabels(log.reason_tags, type),
|
||||
interval,
|
||||
displayTime: formatLogTime(log.smoke_at || log.smoke_time || log.createtime),
|
||||
displayDate
|
||||
|
||||
Reference in New Issue
Block a user