Blame view

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

// Generate cache key according to version
export const getStorageShortName = () => {
8
  return `${globSetting.shortName}__${getEnv()}${`__${pkg.version}`}__`.toUpperCase();
陈文彬 authored
9
};