优化
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
export type AdminRuntimeConfig = {
|
||||
clientWebUrl?: string
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
__CHONGCHONG_RUNTIME_CONFIG__?: AdminRuntimeConfig
|
||||
}
|
||||
}
|
||||
|
||||
export function getClientWebUrl(): string {
|
||||
const runtimeUrl = window.__CHONGCHONG_RUNTIME_CONFIG__?.clientWebUrl
|
||||
return String(runtimeUrl || import.meta.env.VITE_CLIENT_WEB_URL || '').trim()
|
||||
}
|
||||
Reference in New Issue
Block a user