From 746b1998b7b948e56bcda268aadc154371fb4fcd Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期五, 29 十一月 2024 14:26:21 +0800 Subject: [PATCH] # --- zy-acs-flow/src/map/header/FakeFab.jsx | 20 +++++++++++--------- 1 files changed, 11 insertions(+), 9 deletions(-) diff --git a/zy-acs-flow/src/map/header/FakeFab.jsx b/zy-acs-flow/src/map/header/FakeFab.jsx index f39f6d4..0f64e71 100644 --- a/zy-acs-flow/src/map/header/FakeFab.jsx +++ b/zy-acs-flow/src/map/header/FakeFab.jsx @@ -17,15 +17,17 @@ const handleToggle = () => { getFakeSign(null, (res) => { let pass = true; - // if (!res) { - // const pwd = prompt("please enter password:"); - // if (pwd === 'xltys1995') { - // pass = true; - // } else { - // pass = false; - // alert('Incorrect password'); - // } - // } + if (!res) { + const pwd = prompt("please enter password:"); + if (pwd === 'xltys1995') { + pass = true; + } else { + pass = false; + if (!pwd) { + alert('Incorrect password'); + } + } + } if (pass) { setFakeSign(!res, (updatedSign) => { setFakeRun(updatedSign); -- Gitblit v1.9.1