Blame view

src/utils/helper/envHelper.ts 342 Bytes
1
import { getEnv } from '/@/utils/env';
vben authored
2
import { useGlobSetting } from '/@/hooks/setting';
陈文彬 authored
3
import pkg from '../../../package.json';
vben authored
4
const globSetting = useGlobSetting();
陈文彬 authored
5
6

// Generate cache key according to version
7
export function getStorageShortName() {
8
  return `${globSetting.shortName}__${getEnv()}${`__${pkg.version}`}__`.toUpperCase();
9
}