From 406543f8e30d0fb8f2905add5377d043a9c87113 Mon Sep 17 00:00:00 2001
From: YangYuGang <1378265336@qq.com>
Date: 星期五, 07 三月 2025 16:04:36 +0800
Subject: [PATCH] 工具信息更新

---
 src/logics/mitt/routeChange.ts |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/logics/mitt/routeChange.ts b/src/logics/mitt/routeChange.ts
index a985fe2..e28e309 100644
--- a/src/logics/mitt/routeChange.ts
+++ b/src/logics/mitt/routeChange.ts
@@ -2,14 +2,16 @@
  * Used to monitor routing changes to change the status of menus and tabs. There is no need to monitor the route, because the route status change is affected by the page rendering time, which will be slow
  */
 
-import { mitt } from '/@/utils/mitt';
+import { mitt } from '@/utils/mitt';
 import type { RouteLocationNormalized } from 'vue-router';
-import { getRawRoute } from '/@/utils';
-
-const emitter = mitt();
+import { getRawRoute } from '@/utils';
 
 const key = Symbol();
 
+const emitter = mitt<{
+  [key]: RouteLocationNormalized;
+}>();
+
 let lastChangeTab: RouteLocationNormalized;
 
 export function setRouteChange(lastChangeRoute: RouteLocationNormalized) {

--
Gitblit v1.9.3