#
luxiaotao1123
2024-11-26 c7ac2c8bb899b0785daaa9f72a69581bdb93fef1
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);
                });
            }
        });
    }