refactor: migrate backend to TypeScript

This commit is contained in:
gin
2026-06-17 17:40:12 +08:00
parent 98eae63435
commit 74acfd664f
457 changed files with 7397 additions and 25009 deletions
+1 -2
View File
@@ -21,7 +21,7 @@ interface UploadOptions {
showLoading?: boolean
}
const baseURL = process.env.TARO_APP_API_BASE || 'http://localhost:8080'
const baseURL = process.env.TARO_APP_API_BASE || 'http://localhost:3000'
export async function request<T>(options: RequestOptions) {
if (options.showLoading !== false) {
@@ -137,4 +137,3 @@ function handleResponse<T>(data: ResponseData<T>) {
}
return data
}