From b41175b526252a8796de62e0f3ba7ec6c531de52 Mon Sep 17 00:00:00 2001 From: zhang <zc857179121@qq.com> Date: 星期四, 12 六月 2025 14:54:38 +0800 Subject: [PATCH] 寻找待机位和充电桩的时候,找空闲的 --- zy-acs-flow/src/map/header/FakeFab.jsx | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/zy-acs-flow/src/map/header/FakeFab.jsx b/zy-acs-flow/src/map/header/FakeFab.jsx index 635c918..eb3f593 100644 --- a/zy-acs-flow/src/map/header/FakeFab.jsx +++ b/zy-acs-flow/src/map/header/FakeFab.jsx @@ -5,6 +5,7 @@ } from '@mui/material'; import LensBlurIcon from '@mui/icons-material/LensBlur'; import { getFakeSign, setFakeSign } from "../http"; +import { VERIFY_PASSWORD } from '@/config/setting'; const FakeFab = (props) => { const translate = useTranslate(); @@ -21,11 +22,11 @@ let pass = true; if (!res) { const pwd = prompt("please enter password:"); - if (pwd === 'xltys1995') { + if (pwd === VERIFY_PASSWORD) { pass = true; } else { pass = false; - if (!pwd) { + if (pwd) { alert('Incorrect password'); } } -- Gitblit v1.9.1