修复页面bug

This commit is contained in:
2025-09-23 16:12:43 +08:00
parent 408b500b6a
commit 84b6a87ca8
9 changed files with 144 additions and 25 deletions
@@ -9,43 +9,43 @@
export default {
dev: {
'/api-uaa/': {
target: 'http://119.45.169.13:9900',
// target: 'http://127.0.0.1:9900',
// target: 'http://119.45.169.13:9900',
target: 'http://local.goflytec.com:9900',
changeOrigin: true,
},
'/api-user/': {
target: 'http://119.45.169.13:9900',
// target: 'http://127.0.0.1:9900',
// target: 'http://119.45.169.13:9900',
target: 'http://local.goflytec.com:9900',
changeOrigin: true,
},
'/api-log/': {
target: 'http://119.45.169.13:9900',
// target: 'http://127.0.0.1:9900',
// target: 'http://119.45.169.13:9900',
target: 'http://local.goflytec.com:9900',
changeOrigin: true,
},
'/api-search/': {
target: 'http://119.45.169.13:9900',
// target: 'http://127.0.0.1:9900',
// target: 'http://119.45.169.13:9900',
target: 'http://local.goflytec.com:9900',
changeOrigin: true,
},
'/api-generator/': {
target: 'http://119.45.169.13:9900',
// target: 'http://127.0.0.1:9900',
// target: 'http://119.45.169.13:9900',
target: 'http://local.goflytec.com:9900',
changeOrigin: true,
},
'/api-file/': {
target: 'http://119.45.169.13:9900',
// target: 'http://127.0.0.1:9900',
// target: 'http://119.45.169.13:9900',
target: 'http://local.goflytec.com:9900',
changeOrigin: true,
},
'/api-order/': {
target: 'http://119.45.169.13:9900',
// target: 'http://127.0.0.1:9900',
// target: 'http://119.45.169.13:9900',
target: 'http://local.goflytec.com:9900',
changeOrigin: true,
},
'/api-device/': {
target: 'http://119.45.169.13:9900',
// target: 'http://127.0.0.1:9900',
//target: 'http://119.45.169.13:9900',
target: 'http://local.goflytec.com:9900',
changeOrigin: true,
},
},
@@ -4,7 +4,7 @@
"private": true,
"scripts": {
"analyze": "cross-env ANALYZE=1 umi build",
"build": "umi build",
"build": "set NODE_OPTIONS=--openssl-legacy-provider && umi build",
"deploy": "npm run build && npm run gh-pages",
"dev": "npm run start:dev",
"gh-pages": "gh-pages -d dist",
@@ -311,4 +311,6 @@ export const request: RequestConfig = {
};
},
},
// 生产环境使用相对路径,开发环境使用代理
baseURL: process.env.NODE_ENV === 'production' ? '/' : undefined,
};
@@ -1,4 +1,4 @@
import { request } from '@umijs/max';
import { request } from 'umi';
export interface TenantTreeNode {
tenantId: string;