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