feat: save and load button

This commit is contained in:
bridge
2026-02-06 22:19:33 +08:00
parent 67b559ac5a
commit 2ffd6301f8
6 changed files with 89 additions and 18 deletions

View File

@@ -26,6 +26,10 @@ export const systemApi = {
);
},
deleteSave(filename: string) {
return httpClient.post<{ status: string; message: string }>('/api/game/delete', { filename });
},
loadGame(filename: string) {
return httpClient.post<{ status: string; message: string }>('/api/game/load', { filename });
},