From 4841b701b7c03e4c818a226436cf25c2161e42b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E8=AA=89=E7=A8=8B?= <2659568239@qq.com> Date: Thu, 18 Jan 2024 15:16:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/InstallExe/index.tsx | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/src/pages/InstallExe/index.tsx b/src/pages/InstallExe/index.tsx index 52c52fc..41b81d8 100644 --- a/src/pages/InstallExe/index.tsx +++ b/src/pages/InstallExe/index.tsx @@ -67,10 +67,10 @@ const InstallExe: FC = ({ }) => { onClick={() => { const notRequireds = [ - 'MySQLServer 5.1', - 'MyODBC 3.51', + 'MySQLServer 5.1', + 'MyODBC 3.51', '密钥格式管理安装程序', - '认证服务器Install', + '认证服务器Install', '用户登录组件' ] @@ -85,17 +85,6 @@ const InstallExe: FC = ({ }) => { // 如果(选中) 或者 (不需要安装的) 就返回 if (data.select || notRequireds.includes(item.name)) return data; - // 暂时先gbase升级程序(没找到安装流程图片)通过点击就安装成功 - if (data.name == 'GBase升级程序') { - - message.success('GBase升级成功!') - let installExe: any = localStorage.getItem('installExe') - let obj = JSON.parse(installExe); - obj[1].select = true; - localStorage.setItem('installExe', JSON.stringify(data)); - return { ...data, select: !data.select }; - } - // 依赖程序必安装的完成后才能点就右侧2块的内容(专用核心密码管理分系统、一体化密码机、JJP903C密码钥匙) if (key > 8 && needArr) { message.info('请将需要的依赖程序安装完成!'); @@ -119,6 +108,13 @@ const InstallExe: FC = ({ }) => { case 'GBase': setOpen1(true) break; + case 'GBase升级程序': + let installExe: any = localStorage.getItem('installExe') + let info = JSON.parse(installExe); + info[1].select = true; + localStorage.setItem('installExe', JSON.stringify(info)); + message.success('GBase升级成功!') + break; case 'HGoogleEarth': setOpen2(true) break;