#
luxiaotao1123
2024-11-12 ce7cab3f73e46f76b10efd7f8ff8dd5ce712482b
zy-acs-flow/src/map/header/FakeFab.jsx
@@ -17,15 +17,15 @@
    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 (!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);