mirror of
https://github.com/CrazyJasonwell/clash-verge-rev.git
synced 2026-10-20 13:58:32 +08:00
feat: create local profile with selected file
This commit is contained in:
1 parent
9c62311b56
commit
145f6e2d53
5 files changed
+92
-12
No files matched your search
@@ -14,8 +14,11 @@ export async function enhanceProfiles() {
|
||||
return invoke<void>("enhance_profiles");
|
||||
}
|
||||
|
||||
export async function createProfile(item: Partial<CmdType.ProfileItem>) {
|
||||
return invoke<void>("create_profile", { item });
|
||||
export async function createProfile(
|
||||
item: Partial<CmdType.ProfileItem>,
|
||||
fileData?: string | null
|
||||
) {
|
||||
return invoke<void>("create_profile", { item, fileData });
|
||||
}
|
||||
|
||||
export async function viewProfile(index: string) {
|
||||
|
||||
Reference in new issue
Block a user