修复店务端个人信息保存签名路径
This commit is contained in:
@@ -222,7 +222,15 @@ const toBackendRequestPath = (config: InternalAxiosRequestConfig): string => {
|
||||
const url = String(config.url || '')
|
||||
const basePath = extractPath(baseURL).replace(/\/+$/, '')
|
||||
const urlPath = extractPath(url)
|
||||
return `${basePath}${urlPath.startsWith('/') ? urlPath : `/${urlPath}`}`.replace(/^\/admin\/api/, '/admin')
|
||||
const path = `${basePath}${urlPath.startsWith('/') ? urlPath : `/${urlPath}`}`
|
||||
.replace(/^\/admin\/api/, '/admin')
|
||||
if (path === '/api') {
|
||||
return '/'
|
||||
}
|
||||
if (path.startsWith('/api/')) {
|
||||
return `/${path.slice('/api/'.length)}`
|
||||
}
|
||||
return path
|
||||
}
|
||||
|
||||
const appendParam = (target: Record<string, string[]>, key: string, value: unknown): void => {
|
||||
|
||||
Reference in New Issue
Block a user