| | |
| | | import type { GlobEnvConfig } from '/@/types/config'; |
| | | |
| | | import { useGlobSetting } from '/@/hooks/setting'; |
| | | import pkg from '../../package.json'; |
| | | |
| | | /** |
| | | * Get the global configuration (the configuration will be extracted independently when packaging) |
| | | */ |
| | |
| | | return (env as unknown) as GlobEnvConfig; |
| | | } |
| | | |
| | | // Generate cache key according to version |
| | | export function getStorageShortName() { |
| | | const globSetting = useGlobSetting(); |
| | | return `${globSetting.shortName}__${getEnv()}${`__${pkg.version}`}__`.toUpperCase(); |
| | | } |
| | | |
| | | /** |
| | | * @description: Development model |
| | | */ |