flat: 改路径
Some checks failed
Node CI / build (14.x, macOS-latest) (push) Has been cancelled
Node CI / build (14.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (14.x, windows-latest) (push) Has been cancelled
Node CI / build (16.x, macOS-latest) (push) Has been cancelled
Node CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (16.x, windows-latest) (push) Has been cancelled
coverage CI / build (push) Has been cancelled
Node pnpm CI / build (16.x, macOS-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, windows-latest) (push) Has been cancelled

This commit is contained in:
Apcallover
2025-12-23 10:42:48 +08:00
parent 2a930bf682
commit d869713329
7 changed files with 12 additions and 12 deletions

2
.gitignore vendored
View File

@@ -8,7 +8,7 @@ _roadhog-api-doc
# production
/dist
/shihezi
/qing
/qingdao
# misc

View File

@@ -125,7 +125,7 @@ export default defineConfig({
*/
headScripts: [
// 解决首次加载时白屏的问题
{ src: '/shihezi/scripts/loading.js', async: true },
{ src: '/qing/scripts/loading.js', async: true },
],
//================ pro 插件配置 =================
presets: ['umi-presets-pro'],
@@ -151,9 +151,9 @@ export default defineConfig({
mfsu: {
strategy: 'normal',
},
outputPath: 'shihezi',
base: '/shihezi/',
publicPath: '/shihezi/',
outputPath: 'qing',
base: '/qing/',
publicPath: '/qing/',
esbuildMinifyIIFE: true,
requestRecord: {},
});

View File

@@ -15,14 +15,14 @@ export default {
// localhost:8000/api/** -> https://preview.pro.ant.design/api/**
'/api/': {
// 要代理的地址
target: 'https://qd.zhaopinzao8dian.com/api',
target: 'http://36.105.163.21:30081/rgpp/api',
// 配置了这个可以从 http 代理到 https
// 依赖 origin 的功能可能需要这个,比如 cookie
changeOrigin: true,
pathRewrite: { '^/api': '' },
},
'/profile/avatar/': {
target: 'https://qd.zhaopinzao8dian.com/api',
target: 'http://36.105.163.21:30081/rgpp/api',
changeOrigin: true,
}
},

BIN
qing.zip Normal file

Binary file not shown.

Binary file not shown.

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 !== '/shihezi/user/login' && !redirect) {
if (window.location.pathname !== '/qing/user/login' && !redirect) {
history.replace({
pathname: '/user/login',
search: stringify({
redirect: pathname.replace('/shihezi', '') + search,
redirect: pathname.replace('/qing', '') + search,
}),
});
}
@@ -219,7 +219,7 @@ const checkRegion = 5 * 60 * 1000;
export const request = {
...errorConfig,
baseURL: process.env.NODE_ENV === 'development' ? '' : 'http://36.105.163.21:30081/rgpp/api',
// baseURL: 'http://39.98.44.136:8080',
// baseURL: 'http://36.105.163.21:30081/rgpp/api',
// baseURL:
// process.env.NODE_ENV === 'development'
// ? 'http://10.213.6.207:19010'

View File

@@ -54,11 +54,11 @@ export const AvatarDropdown: React.FC<GlobalHeaderRightProps> = ({ menu, childre
const redirect = urlParams.get('redirect');
// Note: There may be security issues, please note
console.log('redirect', window.location.pathname, redirect);
if (window.location.pathname !== '/shihezi/user/login' && !redirect) {
if (window.location.pathname !== '/qing/user/login' && !redirect) {
history.replace({
pathname: '/user/login',
search: stringify({
redirect: pathname.replace('/shihezi', '') + search,
redirect: pathname.replace('/qing', '') + search,
}),
});
}