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
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:
@@ -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: {},
|
||||
});
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user