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

@@ -29,11 +29,11 @@ const loginOut = async () => {
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) {
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,
}),
});
}

View File

@@ -1,7 +1,7 @@
import { GithubOutlined } from '@ant-design/icons';
import { DefaultFooter } from '@ant-design/pro-components';
import React from 'react';
import {getYear} from '@/utils/tools'
import { getYear } from '@/utils/tools';
const Footer: React.FC = () => {
return (
<DefaultFooter
@@ -13,12 +13,13 @@ const Footer: React.FC = () => {
{
key: '青岛政务网',
title: '青岛政务网',
href: 'http://www.qingdao.gov.cn/',
href: 'http://www.shihezi.gov.cn/',
blankTarget: true,
},{
},
{
key: '青岛市人力资源和社会保障局',
title: '青岛市人力资源和社会保障局',
href: 'https://hrss.qingdao.gov.cn/',
href: 'https://hrss.shihezi.gov.cn/',
blankTarget: true,
},
]}

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,
}),
});
}