mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2024-11-16 03:32:36 +08:00
fix: parse logger time
This commit is contained in:
parent
06dabf1e4e
commit
33b1a11d85
|
@ -1,3 +1,4 @@
|
|||
import dayjs from "dayjs";
|
||||
import { invoke } from "@tauri-apps/api/tauri";
|
||||
import { Notice } from "@/components/base";
|
||||
|
||||
|
@ -10,7 +11,8 @@ export async function getClashLogs() {
|
|||
.map((log) => {
|
||||
const result = log.match(regex);
|
||||
if (result) {
|
||||
const [_, time, type, payload] = result;
|
||||
const [_, _time, type, payload] = result;
|
||||
const time = dayjs(_time).format("MM-DD HH:mm:ss");
|
||||
return { time, type, payload };
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user