chore: remove useless code

This commit is contained in:
Vben
2021-02-25 20:17:08 +08:00
parent 5ffac40935
commit 8a9ca498d7
34 changed files with 234 additions and 308 deletions

View File

@@ -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
*/