|
|
|
@ -1,4 +1,4 @@
|
|
|
|
import React, { useEffect, useRef, useState, useMemo } from 'react';
|
|
|
|
import React, { useEffect, useRef, useState, useMemo, useCallback } from 'react';
|
|
|
|
import styles from './style/sideBar.module.less';
|
|
|
|
import styles from './style/sideBar.module.less';
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
ResizeBox,
|
|
|
|
ResizeBox,
|
|
|
|
@ -57,7 +57,8 @@ const AppHandleModal = ({ appInfo, visible, type, onChangeVisible, onClose, onRe
|
|
|
|
const { info } = useSelector(state => state.ideContainer);
|
|
|
|
const { info } = useSelector(state => state.ideContainer);
|
|
|
|
const [form] = Form.useForm();
|
|
|
|
const [form] = Form.useForm();
|
|
|
|
|
|
|
|
|
|
|
|
if (type === 'EDIT' && appInfo) {
|
|
|
|
useEffect(() => {
|
|
|
|
|
|
|
|
if (type === 'EDIT' && appInfo && visible) {
|
|
|
|
form.setFieldsValue({
|
|
|
|
form.setFieldsValue({
|
|
|
|
id: appInfo?.id,
|
|
|
|
id: appInfo?.id,
|
|
|
|
name: appInfo?.name,
|
|
|
|
name: appInfo?.name,
|
|
|
|
@ -67,6 +68,7 @@ const AppHandleModal = ({ appInfo, visible, type, onChangeVisible, onClose, onRe
|
|
|
|
sceneId: info.id
|
|
|
|
sceneId: info.id
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}, [type, appInfo, visible, form, info.id]);
|
|
|
|
|
|
|
|
|
|
|
|
const onOk = async () => {
|
|
|
|
const onOk = async () => {
|
|
|
|
await form.validate();
|
|
|
|
await form.validate();
|
|
|
|
|