feature: copy clash env (#1391)
* feat: copy clash env * style: use ContentCopyRounded replace CopyAll
This commit is contained in:
@@ -2,6 +2,10 @@ import dayjs from "dayjs";
|
||||
import { invoke } from "@tauri-apps/api/tauri";
|
||||
import { Notice } from "@/components/base";
|
||||
|
||||
export async function copyClashEnv() {
|
||||
return invoke<void>("copy_clash_env");
|
||||
}
|
||||
|
||||
export async function getClashLogs() {
|
||||
const regex = /time="(.+?)"\s+level=(.+?)\s+msg="(.+?)"/;
|
||||
const newRegex = /(.+?)\s+(.+?)\s+(.+)/;
|
||||
|
||||
Reference in New Issue
Block a user