flat:石河子

This commit is contained in:
Apcallover
2025-12-19 17:56:54 +08:00
parent 5b6393a37d
commit e7ad0c1567
6 changed files with 15 additions and 151 deletions

View File

@@ -53,12 +53,12 @@ export const AvatarDropdown: React.FC<GlobalHeaderRightProps> = ({ menu, childre
/** 此方法会跳转到 redirect 参数所在的位置 */
const redirect = urlParams.get('redirect');
// Note: There may be security issues, please note
console.log('redirect', window.location.pathname, redirect)
if (window.location.pathname !== '/qingdao/user/login' && !redirect) {
console.log('redirect', window.location.pathname, redirect);
if (window.location.pathname !== '/shihezi/user/login' && !redirect) {
history.replace({
pathname: '/user/login',
search: stringify({
redirect: pathname.replace('/qingdao', '') + search,
redirect: pathname.replace('/shihezi', '') + search,
}),
});
}