mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-27 12:12:01 +08:00
chore: remove useless code
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
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)
|
||||
*/
|
||||
@@ -8,6 +11,12 @@ export function getGlobEnvConfig(): GlobEnvConfig {
|
||||
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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user