vdi/pc-fe/src/app.tsx

10 lines
256 B
TypeScript

import { history } from 'umi';
export function onRouteChange({ location }: { location: any }) {
// 路由变化时的处理逻辑
console.log('Route changed to:', location.pathname);
}
export function render(oldRender: () => void) {
oldRender();
}