mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 17:15:38 +08:00
feat: Support Drag to Reorder the Profile (#29)
* feat: Support Drag to Reorder the Profile * style: Remove unnecessary styles
This commit is contained in:
@@ -64,6 +64,13 @@ export async function importProfile(url: string) {
|
||||
});
|
||||
}
|
||||
|
||||
export async function reorderProfile(activeId: string, overId: string) {
|
||||
return invoke<void>("reorder_profile", {
|
||||
activeId,
|
||||
overId,
|
||||
});
|
||||
}
|
||||
|
||||
export async function updateProfile(index: string, option?: IProfileOption) {
|
||||
return invoke<void>("update_profile", { index, option });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user