This commit is contained in:
Jason
2023-01-09 19:02:20 +08:00
parent 570198d9bc
commit 5d056280b0
89 changed files with 20634 additions and 1 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
}