feat: create local profile with selected file

This commit is contained in:
GyDi committed 2022-03-19 19:21:55 +08:00
1 parent 9c62311b56
commit 145f6e2d53
5 files changed
+92 -12

No files matched your search

+5 -2
View File
@@ -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) {