feat: 添加依赖注入工具函数
This commit is contained in:
5
src/utils/create-injection-key.ts
Normal file
5
src/utils/create-injection-key.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import type { InjectionKey } from 'vue';
|
||||
|
||||
export const createInjectionKey = <T>(key: string): InjectionKey<T> => {
|
||||
return Symbol(key);
|
||||
};
|
||||
@@ -1,4 +1,5 @@
|
||||
export * from './cipher';
|
||||
export * from './create-injection-key';
|
||||
export * from './download';
|
||||
export * from './env';
|
||||
export * from './format-duration';
|
||||
|
||||
Reference in New Issue
Block a user