修复店务端个人信息保存签名路径

This commit is contained in:
2026-07-03 01:29:44 +08:00
parent 4d56d58a8f
commit 595000737a
2 changed files with 40 additions and 1 deletions
@@ -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 => {