|
@@ -26,10 +26,13 @@ const CommandModal = () => {
|
|
const pw = md5(value);
|
|
const pw = md5(value);
|
|
const res = await checkPW({ pw });
|
|
const res = await checkPW({ pw });
|
|
if (res) {
|
|
if (res) {
|
|
- UnityAction.sendMsg();
|
|
|
|
|
|
+ UnityAction.sendMsg('CommandSuccess');
|
|
// message.success('已切换成【控制模式】');
|
|
// message.success('已切换成【控制模式】');
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
+ const handleClose = () => {
|
|
|
|
+ UnityAction.sendMsg('CommandClose');
|
|
|
|
+ };
|
|
return (
|
|
return (
|
|
<div className={styles.modelMain}>
|
|
<div className={styles.modelMain}>
|
|
<Modal
|
|
<Modal
|
|
@@ -39,7 +42,8 @@ const CommandModal = () => {
|
|
width={640}
|
|
width={640}
|
|
open={true}
|
|
open={true}
|
|
footer={null}
|
|
footer={null}
|
|
- closable={false}
|
|
|
|
|
|
+ // closable={false}
|
|
|
|
+ onCancel={handleClose}
|
|
>
|
|
>
|
|
<div className={styles.upContent}>
|
|
<div className={styles.upContent}>
|
|
{new Array(8).fill('').map((item, idx) => (
|
|
{new Array(8).fill('').map((item, idx) => (
|