登录 个人 与 零星采购

This commit is contained in:
孙景学
2025-07-09 14:01:45 +08:00
parent 56da66ee21
commit b46b35cd4b
35 changed files with 1054 additions and 343 deletions

10
src/app.ts Normal file
View File

@ -0,0 +1,10 @@
import { history } from 'umi';
export function onRouteChange({ location }: any) {
// const token = localStorage.getItem('token');
// const whiteList = ['/login', '/user/register', '/403', '/404'];
// if (!token && !whiteList.includes(location.pathname)) {
// history.replace('/login');
// }
}