From f02bcf6f8de66d54fc4d9b10d62f82f3c7aa3574 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期一, 02 十二月 2024 15:18:40 +0800
Subject: [PATCH] #

---
 zy-acs-flow/src/map/header/FakeFab.jsx |   20 +++++++++++++++++---
 1 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/zy-acs-flow/src/map/header/FakeFab.jsx b/zy-acs-flow/src/map/header/FakeFab.jsx
index c26bf57..0f64e71 100644
--- a/zy-acs-flow/src/map/header/FakeFab.jsx
+++ b/zy-acs-flow/src/map/header/FakeFab.jsx
@@ -16,9 +16,23 @@
 
     const handleToggle = () => {
         getFakeSign(null, (res) => {
-            setFakeSign(!res, (updatedSign) => {
-                setFakeRun(updatedSign);
-            });
+            let pass = true;
+            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