fix: Fixed an issue where the project could not be built #1306 (#1693)

### What problem does this PR solve?

fix: Fixed an issue where the project could not be built #1306

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
balibabu 2024-07-24 18:27:03 +08:00 committed by GitHub
parent 7ca98848ac
commit d7426d86d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,7 +20,7 @@ export default defineConfig({
}, },
plugins: ['@react-dev-inspector/umi4-plugin', '@umijs/plugins/dist/dva'], plugins: ['@react-dev-inspector/umi4-plugin', '@umijs/plugins/dist/dva'],
dva: {}, dva: {},
jsMinifier: 'terser',
lessLoader: { lessLoader: {
modifyVars: { modifyVars: {
hack: `true; @import "~@/less/index.less";`, hack: `true; @import "~@/less/index.less";`,
@ -30,7 +30,7 @@ export default defineConfig({
copy: ['src/conf.json'], copy: ['src/conf.json'],
proxy: { proxy: {
'/v1': { '/v1': {
target: '', target: 'http://localhost:9380/',
changeOrigin: true, changeOrigin: true,
ws: true, ws: true,
logger: console, logger: console,