项目打开功能

This commit is contained in:
YHH
2025-10-15 00:23:19 +08:00
parent 4550a6146a
commit b757c1d06c
7 changed files with 172 additions and 8 deletions

View File

@@ -11,9 +11,10 @@ export class TauriAPI {
return await invoke<string>('greet', { name });
}
/**
* 打开项目
*/
static async openProjectDialog(): Promise<string | null> {
return await invoke<string | null>('open_project_dialog');
}
static async openProject(path: string): Promise<string> {
return await invoke<string>('open_project', { path });
}