mirror of
https://github.com/iflytek/skillhub.git
synced 2026-10-03 02:24:36 +00:00
feat : 调整适配部署阿里云效
This commit is contained in:
parent
3b8a6bc032
commit
9ab32c260f
1 changed files with 2 additions and 0 deletions
|
|
@ -249,6 +249,7 @@ export async function fetchText(input: RequestInfo | URL, init?: RequestInit): P
|
|||
|
||||
function withBaseUrl(input: RequestInfo | URL): RequestInfo | URL {
|
||||
const baseUrl = getApiBaseUrl()
|
||||
console.log('baseUrl', baseUrl)
|
||||
if (!baseUrl || typeof input !== 'string' || !input.startsWith('/')) {
|
||||
return input
|
||||
}
|
||||
|
|
@ -257,6 +258,7 @@ function withBaseUrl(input: RequestInfo | URL): RequestInfo | URL {
|
|||
|
||||
export function buildApiUrl(path: string): string {
|
||||
const baseUrl = getApiBaseUrl()
|
||||
console.log('baseUrl', baseUrl)
|
||||
if (!baseUrl) {
|
||||
return path
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue