Ben Lin
2024-06-27 dfd2d0218bbcea93b4bfb0e7ca7ac9b1cc1cc7da
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) {