From 7fd4327861ee2b36af01ff526742b0704f713ccc Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期二, 26 十一月 2024 15:00:42 +0800
Subject: [PATCH] #
---
zy-acs-flow/src/map/header/FakeFab.jsx | 18 +++++++++++++++---
1 files changed, 15 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..f39f6d4 100644
--- a/zy-acs-flow/src/map/header/FakeFab.jsx
+++ b/zy-acs-flow/src/map/header/FakeFab.jsx
@@ -16,9 +16,21 @@
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;
+ // alert('Incorrect password');
+ // }
+ // }
+ if (pass) {
+ setFakeSign(!res, (updatedSign) => {
+ setFakeRun(updatedSign);
+ });
+ }
});
}
--
Gitblit v1.9.1