From f4f0f1db95fb28173711c24caf3bc69e2a9c2a2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E4=BF=9D=E7=A5=A5?= Date: Wed, 8 Jan 2025 17:42:31 +0800 Subject: [PATCH] 1.1.3 bug fix --- package.json | 2 +- .../project/component/navindex/component/NavIndexContainer.tsx | 2 ++ src/web/project/component/toolbox/rdp/Rdp.tsx | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 1ff53dd..0ab55c1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "filecat", - "version": "1.1.2", + "version": "1.1.3", "description": "filecat 文件管理器", "author": "xiaobaidadada", "scripts": { diff --git a/src/web/project/component/navindex/component/NavIndexContainer.tsx b/src/web/project/component/navindex/component/NavIndexContainer.tsx index becfae3..94d29b6 100644 --- a/src/web/project/component/navindex/component/NavIndexContainer.tsx +++ b/src/web/project/component/navindex/component/NavIndexContainer.tsx @@ -121,6 +121,7 @@ export function NavIndexContainer(props: { update_list(list); setItems(list) setEdit(true) + set_nav_index_add_item_by_now_list(undefined) } }, [nav_index_add_item_by_now_list]); const addDirItem = () => { @@ -131,6 +132,7 @@ export function NavIndexContainer(props: { const cancel = () => { setEdit_index([]); setEdit(false); + if(itemp_recover) setItems(itemp_recover); set_unfold(false) } diff --git a/src/web/project/component/toolbox/rdp/Rdp.tsx b/src/web/project/component/toolbox/rdp/Rdp.tsx index b7ce68a..79d9a79 100644 --- a/src/web/project/component/toolbox/rdp/Rdp.tsx +++ b/src/web/project/component/toolbox/rdp/Rdp.tsx @@ -22,6 +22,7 @@ import {loadJsFileOnce} from "../../../util/file"; // require('./client/js/rle'); +let load; export function Rdp() { const { t } = useTranslation(); const [headerMin, setHeaderMin] = useRecoilState($stroe.header_min); @@ -34,6 +35,7 @@ export function Rdp() { const loadfile = async ()=> { try { await loadJsFileOnce("rle.js"); + load = true; } catch (e) { NotyFail("加载资源失败"); return; @@ -42,6 +44,7 @@ export function Rdp() { } var client = null; useEffect(() => { + if(!load) loadfile(); return ()=>{ if (client) {