This commit is contained in:
telangpu
2026-05-10 23:25:27 +08:00
parent c8dc57a3f6
commit 4ef6bfcdba
155 changed files with 111106 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
// src/eventBus.ts
import mitt from "mitt";
// 定义事件名称和对应的数据类型
type Events = {
"my-event": { message2: string };
"otp-valid": { message2: string };
"app-valid": { message2: string };
"custom-otp-valid": { message2: string };
// 可以在这里添加其他事件
// 'another-event': number;
};
const eventBus = mitt<Events>();
export default eventBus;