feat(web): api client and pinia store for workspace/worktree

This commit is contained in:
2026-05-02 20:27:51 +08:00
parent 0cadec343c
commit deaa738bf9
4 changed files with 322 additions and 1 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ const BASE = '' // 同源;dev 走 vite proxy
const DEFAULT_TIMEOUT_MS = 30_000
interface RequestOptions {
method?: 'GET' | 'POST' | 'PATCH' | 'DELETE'
method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'
body?: unknown
signal?: AbortSignal
}