You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
487 B
27 lines
487 B
/** |
|
* @description 获取客户端类型 |
|
*/ |
|
export function getClient() { |
|
return useRuntimeConfig().public.client |
|
} |
|
|
|
/** |
|
* @description 获取版本号 |
|
*/ |
|
export function getVersion() { |
|
return useRuntimeConfig().public.version |
|
} |
|
|
|
/** |
|
* @description 获取请求域名 |
|
*/ |
|
export function getApiUrl() { |
|
return useRuntimeConfig().public.apiUrl |
|
} |
|
|
|
/** |
|
* @description 获取请求前缀 |
|
*/ |
|
export function getApiPrefix() { |
|
return useRuntimeConfig().public.apiPrefix |
|
}
|
|
|