refactor: migrate backend to TypeScript
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user