mirror of
https://github.com/chansee97/nova-admin.git
synced 2025-11-18 14:32:10 +08:00
fix: 修改全局地址映射名字
This commit is contained in:
parent
050ab3e7ed
commit
ac9d7e84e5
@ -38,7 +38,7 @@ export interface ServiceProxyPluginOptions {
|
||||
devEnvName?: ServiceEnvType
|
||||
/** 是否启用代理配置 */
|
||||
enableProxy?: boolean
|
||||
/** 环境变量名(可选,默认为 '__PROXY_MAPPING__') */
|
||||
/** 环境变量名(可选,默认为 '__URL_MAP__') */
|
||||
envName?: string
|
||||
/** d.ts 类型文件生成路径(可选,如果传入路径则在该路径生成 d.ts 类型文件) */
|
||||
dts?: string
|
||||
@ -50,7 +50,7 @@ export default function createServiceProxyPlugin(options: ServiceProxyPluginOpti
|
||||
devEnvName = 'development',
|
||||
proxyPrefix = 'proxy-',
|
||||
enableProxy = true,
|
||||
envName = '__PROXY_MAPPING__',
|
||||
envName = '__URL_MAP__',
|
||||
dts,
|
||||
} = options
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import { createAlovaInstance } from './alova'
|
||||
|
||||
export const request = createAlovaInstance({
|
||||
baseURL: __PROXY_MAPPING__.url.path,
|
||||
baseURL: __URL_MAP__.url.path,
|
||||
})
|
||||
|
||||
export const blankInstance = createAlovaInstance({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user