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 # production
/dist /dist
/shihezi /qing
/qingdao /qingdao
# misc # misc

View File

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

View File

@@ -15,14 +15,14 @@ export default {
// localhost:8000/api/** -> https://preview.pro.ant.design/api/** // localhost:8000/api/** -> https://preview.pro.ant.design/api/**
'/api/': { '/api/': {
// 要代理的地址 // 要代理的地址
target: 'https://qd.zhaopinzao8dian.com/api', target: 'http://36.105.163.21:30081/rgpp/api',
// 配置了这个可以从 http 代理到 https // 配置了这个可以从 http 代理到 https
// 依赖 origin 的功能可能需要这个,比如 cookie // 依赖 origin 的功能可能需要这个,比如 cookie
changeOrigin: true, changeOrigin: true,
pathRewrite: { '^/api': '' }, pathRewrite: { '^/api': '' },
}, },
'/profile/avatar/': { '/profile/avatar/': {
target: 'https://qd.zhaopinzao8dian.com/api', target: 'http://36.105.163.21:30081/rgpp/api',
changeOrigin: true, 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'); const redirect = urlParams.get('redirect');
// Note: There may be security issues, please note // Note: There may be security issues, please note
console.log('redirect', window.location.pathname, redirect); 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({ history.replace({
pathname: '/user/login', pathname: '/user/login',
search: stringify({ search: stringify({
redirect: pathname.replace('/shihezi', '') + search, redirect: pathname.replace('/qing', '') + search,
}), }),
}); });
} }
@@ -219,7 +219,7 @@ const checkRegion = 5 * 60 * 1000;
export const request = { export const request = {
...errorConfig, ...errorConfig,
baseURL: process.env.NODE_ENV === 'development' ? '' : 'http://36.105.163.21:30081/rgpp/api', 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: // baseURL:
// process.env.NODE_ENV === 'development' // process.env.NODE_ENV === 'development'
// ? 'http://10.213.6.207:19010' // ? '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'); const redirect = urlParams.get('redirect');
// Note: There may be security issues, please note // Note: There may be security issues, please note
console.log('redirect', window.location.pathname, redirect); 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({ history.replace({
pathname: '/user/login', pathname: '/user/login',
search: stringify({ search: stringify({
redirect: pathname.replace('/shihezi', '') + search, redirect: pathname.replace('/qing', '') + search,
}), }),
}); });
} }