feat 项目中心
This commit is contained in:
@@ -5,7 +5,7 @@ import { storage } from '@/utils/storage'
|
||||
|
||||
const SUCCESS_CODE = 200
|
||||
|
||||
export const CLIENT_ID = 'e5cd7e4891bf95d1d19206ce24a7b32e'
|
||||
export const CLIENT_ID = '9f2c4e7a1b3d5c8e2f6a0b4d7c1e9f3a'
|
||||
|
||||
const service = axios.create({
|
||||
baseURL: import.meta.env.VITE_API_BASE_URL,
|
||||
@@ -36,12 +36,16 @@ export function serializeQuery(params: Record<string, unknown>): string {
|
||||
return
|
||||
}
|
||||
if (typeof value === 'object') {
|
||||
for (const [subKey, subValue] of Object.entries(value as Record<string, unknown>)) {
|
||||
for (const [subKey, subValue] of Object.entries(
|
||||
value as Record<string, unknown>,
|
||||
)) {
|
||||
append(`${key}.${subKey}`, subValue)
|
||||
}
|
||||
return
|
||||
}
|
||||
parts.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`)
|
||||
parts.push(
|
||||
`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`,
|
||||
)
|
||||
}
|
||||
|
||||
for (const [key, value] of Object.entries(params)) append(key, value)
|
||||
|
||||
Reference in New Issue
Block a user