fix(projects): 修复首页未从环境变量获取问题

This commit is contained in:
xlsea
2025-06-16 17:56:25 +08:00
parent f0810bce4c
commit 031b7f698a
2 changed files with 3 additions and 14 deletions

View File

@ -31,7 +31,7 @@ const processResponse = async () => {
msg.value = '登录成功1s 后即将跳转至首页';
}, 1000);
setTimeout(() => {
routerPushByKey('home');
routerPushByKey(import.meta.env.VITE_ROUTE_HOME || 'home');
}, 1000);
};