feat: 更新重定向路径,将 '/root/home/' 修改为 '/root/center/'
This commit is contained in:
@@ -10,11 +10,11 @@ import { getUserConfig } from '@/modules/fm-manager/index.ts';
|
||||
export const rediretHome = async (req: http.IncomingMessage, res: http.ServerResponse) => {
|
||||
const user = await getLoginUser(req);
|
||||
if (!user?.token) {
|
||||
res.writeHead(302, { Location: '/root/home/' });
|
||||
res.writeHead(302, { Location: '/root/center/' });
|
||||
res.end();
|
||||
return;
|
||||
}
|
||||
let redirectURL = '/root/home/';
|
||||
let redirectURL = '/root/center/';
|
||||
try {
|
||||
const token = user.token;
|
||||
const resConfig = await getUserConfig(token);
|
||||
|
||||
Reference in New Issue
Block a user