import type { InjectionKey } from 'vue'; import { InjectionToken } from '@oinone/kunlun-spi'; const __DEV__ = process.env.NODE_ENV === 'development'; export const genToken = (name: string): InjectionKey => { return InjectionToken(__DEV__ ? `[vue-kunlun]: ${name}` : name) as any as InjectionKey; };