From da5bf570afb1d4dbc14078ef5e71cc679c003121 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 12 九月 2023 10:15:13 +0800 Subject: [PATCH] Merge branch 'master' into positec --- src/tabviews/custom/components/module/voucher/saveAsTemp/index.jsx | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/tabviews/custom/components/module/voucher/saveAsTemp/index.jsx b/src/tabviews/custom/components/module/voucher/saveAsTemp/index.jsx index 6c5c151..4c629f2 100644 --- a/src/tabviews/custom/components/module/voucher/saveAsTemp/index.jsx +++ b/src/tabviews/custom/components/module/voucher/saveAsTemp/index.jsx @@ -18,15 +18,13 @@ UNSAFE_componentWillMount() { let menuId = '16289973311406f3ko9nm8ehotdmu80o' - let menu = window.GLOB.mkThdMenus.filter(m => m.MenuID === menuId)[0] + let menu = window.GLOB.mkThdMenus.get(menuId) if (menu) { - let newtab = { + this.setState({menu: { ...menu, param: {} - } - - this.setState({menu: newtab}) + }}) } } -- Gitblit v1.8.0