diff --git a/.gitignore b/.gitignore index 677e814..3c6bd29 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,7 @@ _roadhog-api-doc # production /dist -/shihezi +/qing /qingdao # misc diff --git a/config/config.ts b/config/config.ts index 7758b19..410b390 100644 --- a/config/config.ts +++ b/config/config.ts @@ -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: {}, }); diff --git a/config/proxy.ts b/config/proxy.ts index 8d6782d..ab12bd5 100644 --- a/config/proxy.ts +++ b/config/proxy.ts @@ -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, } }, diff --git a/qing.zip b/qing.zip new file mode 100644 index 0000000..67cd906 Binary files /dev/null and b/qing.zip differ diff --git a/shihezi.zip b/shihezi.zip deleted file mode 100644 index c0aae59..0000000 Binary files a/shihezi.zip and /dev/null differ diff --git a/src/app.tsx b/src/app.tsx index 32169b3..18f5234 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -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' diff --git a/src/components/RightContent/AvatarDropdown.tsx b/src/components/RightContent/AvatarDropdown.tsx index 421ac56..59cb589 100644 --- a/src/components/RightContent/AvatarDropdown.tsx +++ b/src/components/RightContent/AvatarDropdown.tsx @@ -54,11 +54,11 @@ export const AvatarDropdown: React.FC = ({ 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, }), }); }