feat: 接口变更

develop2
donghao 10 months ago
parent d6d8b21265
commit 01093e14a5

@ -3,4 +3,4 @@ REACT_APP_ENV = dev
API_SERVER = 127.0.0.1:8888 API_SERVER = 127.0.0.1:8888
SERVER_HOST = http://localhost:8888/ SERVER_HOST = http://localhost:8888/
FILE_SERVER_HOST = http://192.168.10.28:8088 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 API_SERVER = 127.0.0.1:8888
SERVER_HOST = http://localhost:8888/ SERVER_HOST = http://localhost:8888/
FILE_SERVER_HOST = http://192.168.10.28:8088 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 REACT_APP_ENV = prod
API_SERVER = 127.0.0.1:8888 API_SERVER = 127.0.0.1:8888
SERVER_HOST = / SERVER_HOST = /
FILE_SERVER_HOST = http://192.168.10.96 FILE_SERVER_HOST = http://192.168.10.70
WEBRTC_SERVER_HOST = http://192.168.10.96:9005 WEBRTC_SERVER_HOST = http://192.168.10.70:8889

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

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

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

@ -2,9 +2,9 @@
* @Author: zhoux zhouxia@supervision.ltd * @Author: zhoux zhouxia@supervision.ltd
* @Date: 2023-11-16 14:30:15 * @Date: 2023-11-16 14:30:15
* @LastEditors: donghao donghao@supervision.ltd * @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 * @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 { ExclamationCircleOutlined } from '@ant-design/icons';
// import { useIntl } from '@ant-design/pro-components'; // import { useIntl } from '@ant-design/pro-components';

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

Loading…
Cancel
Save