#
luxiaotao1123
2024-12-02 f02bcf6f8de66d54fc4d9b10d62f82f3c7aa3574
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);
                });
            }
        });
    }