code-origin/pc/utils/env.ts

28 lines
487 B
TypeScript
Raw Normal View History

2023-11-08 17:59:25 +08:00
/**
* @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
}