From 426ca4947a782ba9077c9d228257242768475eae Mon Sep 17 00:00:00 2001 From: yangsy Date: Wed, 24 Dec 2025 23:09:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=E6=B3=A8=E5=85=A5=E5=B7=A5=E5=85=B7=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/create-injection-key.ts | 5 +++++ src/utils/index.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 src/utils/create-injection-key.ts diff --git a/src/utils/create-injection-key.ts b/src/utils/create-injection-key.ts new file mode 100644 index 0000000..b529c90 --- /dev/null +++ b/src/utils/create-injection-key.ts @@ -0,0 +1,5 @@ +import type { InjectionKey } from 'vue'; + +export const createInjectionKey = (key: string): InjectionKey => { + return Symbol(key); +}; diff --git a/src/utils/index.ts b/src/utils/index.ts index 749d38d..e0471d4 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,4 +1,5 @@ export * from './cipher'; +export * from './create-injection-key'; export * from './download'; export * from './env'; export * from './format-duration';