#
luxiaotao1123
2024-11-11 6324d391d2b0aa5b96128f5e07a612ec7ebf8c20
zy-acs-flow/src/map/header/FakeFab.jsx
@@ -16,9 +16,21 @@
    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 (pass) {
            setFakeSign(!res, (updatedSign) => {
                setFakeRun(updatedSign);
            });
            }
        });
    }