Skip to content

Commit c17f761

Browse files
cyfung1031CodFrm
andauthored
🐛 修复弹出的更新窗口时间问题 (#1155)
* 弹出的更新窗口显示时间 * 修改单位为秒 --------- Co-authored-by: 王一之 <yz@ggnb.top>
1 parent 7ef7355 commit c17f761

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/pages/batchupdate/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const pageExecute: Record<string, (data: any) => void> = {};
3131
function App() {
3232
const { subscribeMessage } = useAppContext();
3333

34-
const AUTO_CLOSE_PAGE = 8000; // after 8s, auto close
34+
const AUTO_CLOSE_PAGE = 8; // after 8s, auto close
3535
const getUrlParam = (key: string): string => {
3636
return (location.search?.includes(`${key}=`) ? new URLSearchParams(location.search).get(`${key}`) : "") || "";
3737
};
@@ -51,7 +51,7 @@ function App() {
5151
const [mStatusText, setStatusText] = useState<string>("");
5252

5353
// unit: second
54-
const [mTimeClose, setTimeClose] = useState<number>(initialTimeForAutoClosePage / 1000);
54+
const [mTimeClose, setTimeClose] = useState<number>(initialTimeForAutoClosePage);
5555
useEffect(() => {
5656
if (mTimeClose < 0) return;
5757
if (mTimeClose === 0) {

0 commit comments

Comments
 (0)