Skip to content

Commit

Permalink
任务类型提取正则修复
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhaoZuohong committed Sep 17, 2023
1 parent 5d696dc commit cd8a09d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/stores/mower.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const useMowerStore = defineStore('mower', () => {
const scheduler_task = task_line.split('||')
const date_time_re = /time='[0-9]+-[0-9]+-[0-9]+ ([0-9]+:[0-9]+:[0-9]+)/
const plan_re = /task_plan={(.*)}/
const type_re = /task_type='(.*)'/
const type_re = /task_type=TaskTypes\.(.*),/
let task_text
task_list.value = scheduler_task.map((x) => {
const plan_text = plan_re.exec(x)[1].replace(/'/g, '"')
Expand Down

0 comments on commit cd8a09d

Please sign in to comment.