This commit is contained in:
quantulr
2023-10-29 18:37:44 +08:00
commit 373b3d9dff
1813 changed files with 131892 additions and 0 deletions

27
pc/utils/env.ts Normal file
View File

@ -0,0 +1,27 @@
/**
* @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
}