feat: 接口变更

develop2
donghao 8 months ago
parent d6d8b21265
commit 01093e14a5

@ -3,4 +3,4 @@ REACT_APP_ENV = dev
API_SERVER = 127.0.0.1:8888
SERVER_HOST = http://localhost:8888/
FILE_SERVER_HOST = http://192.168.10.28:8088
WEBRTC_SERVER_HOST = http://192.168.10.96:9005
WEBRTC_SERVER_HOST = http://192.168.10.70:8889

@ -3,4 +3,4 @@ REACT_APP_ENV = dev
API_SERVER = 127.0.0.1:8888
SERVER_HOST = http://localhost:8888/
FILE_SERVER_HOST = http://192.168.10.28:8088
WEBRTC_SERVER_HOST = http://192.168.10.96:9005
WEBRTC_SERVER_HOST = http://192.168.10.70:8889

@ -1,5 +1,5 @@
REACT_APP_ENV = prod
API_SERVER = 127.0.0.1:8888
SERVER_HOST = /
FILE_SERVER_HOST = http://192.168.10.96
WEBRTC_SERVER_HOST = http://192.168.10.96:9005
FILE_SERVER_HOST = http://192.168.10.70
WEBRTC_SERVER_HOST = http://192.168.10.70:8889

@ -33,7 +33,7 @@ export default {
// localhost:8000/api/** -> https://preview.pro.ant.design/api/**
'/api/v1/': {
// 要代理的地址
target: 'http://192.168.10.94:8999/',
target: 'http://192.168.10.70:8889/',
// target: 'https://www.baidu.com',
// 配置了这个可以从 http 代理到 https
// 依赖 origin 的功能可能需要这个,比如 cookie

@ -5,7 +5,7 @@
"description": "An out-of-box UI solution for enterprise applications",
"scripts": {
"analyze": "cross-env ANALYZE=1 max build",
"build": "max build",
"build": "cross-env API_ENV=production max build",
"deploy": "npm run build && npm run gh-pages",
"dev": "npm run start:dev",
"gh-pages": "gh-pages -d dist",

@ -1,5 +1,5 @@
import { AvatarDropdown, AvatarName, MenuBar } from '@/components';
import fixMenuItemIcon from '@/utils/FixMenuItemIcon';
// import fixMenuItemIcon from '@/utils/FixMenuItemIcon';
import { getAllRouteNameTile, replaceMenuWithRoutesData } from '@/utils/common';
import { addLocale } from '@@/plugin-locale';
import type { Settings as LayoutSettings } from '@ant-design/pro-components';
@ -78,6 +78,7 @@ export async function getInitialState(): Promise<{
localStorage.setItem('userInfo', JSON.stringify(currUserInfo));
return currUserInfo;
}
history.push(loginPath);
return undefined;
} catch (error) {
history.push(loginPath);
@ -154,11 +155,11 @@ export const layout: RunTimeLayoutConfig = ({ initialState, setInitialState }) =
},
},
menuRender: () => undefined,
menuDataRender: () => {
if (initialState?.menuData !== undefined) {
return fixMenuItemIcon(initialState?.menuData || []);
}
},
// menuDataRender: () => {
// if (initialState?.menuData !== undefined) {
// return fixMenuItemIcon(initialState?.menuData || []);
// }
// },
bgLayoutImgList: [
{
src: 'https://mdn.alipayobjects.com/yuyan_qk0oxh/afts/img/D2LWSqNny4sAAAAAAAAAAAAAFl94AQBr',

@ -2,9 +2,9 @@
* @Author: zhoux zhouxia@supervision.ltd
* @Date: 2023-11-16 14:30:15
* @LastEditors: donghao donghao@supervision.ltd
* @LastEditTime: 2024-04-02 16:51:36
* @LastEditTime: 2024-07-02 15:41:40
* @FilePath: \general-ai-platform-web\src\components\BatchOperation\isBatchDelete.tsx
* @Description: ,`customMade`, koroFileHeader : https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description:
*/
import { ExclamationCircleOutlined } from '@ant-design/icons';
// import { useIntl } from '@ant-design/pro-components';

@ -29,11 +29,11 @@ const CreateForm: React.FC<CreateFormProps> = (props) => {
useEffect(() => {
if (props.createModalOpen) {
form.setFieldsValue({
name: '晶圆检测工艺00',
classification: 11, // 设备分类的suid
// name: '晶圆检测工艺00',
// classification: 11, // 设备分类的suid
model_type: 1001,
comment:
'测试一下备注测试一下备注测试一下备注测试一下备注测试一下备注测试一下备注测试一下备注测试一下备注测试一下备注测试一下备注测试一下备注测试一下备注',
// comment:
// '测试一下备注测试一下备注测试一下备注测试一下备注测试一下备注测试一下备注测试一下备注测试一下备注测试一下备注测试一下备注测试一下备注测试一下备注',
});
}
}, [props.createModalOpen]);

Loading…
Cancel
Save