diff --git a/src/pages/InitialSystem/PowerOnAuth/index.tsx b/src/pages/InitialSystem/PowerOnAuth/index.tsx index 292bbd1..71d5d91 100644 --- a/src/pages/InitialSystem/PowerOnAuth/index.tsx +++ b/src/pages/InitialSystem/PowerOnAuth/index.tsx @@ -53,6 +53,9 @@ const PowerOnAuth: FC = ({ }) => { } }, []) + const getName = () => { + return urlParams?.fileType == 'offLine' ? '离线版' : '在线版' + } // 在指定的目录下安装快捷方式 const installSuccess = async () => { @@ -62,7 +65,7 @@ const PowerOnAuth: FC = ({ }) => { headers: { 'Content-Type': 'application/json' }, mode: "cors", body: JSON.stringify({ - folderPath: `${DEV.FILE_URL}/${countType[urlParams?.fileType]}`, + folderPath: `${DEV.FILE_URL}/${getName()}/${countType[urlParams?.fileType]}`, shortcutName: '重启服务', shortcutURL: `${DEV.LOCAL_URL}/restartService/${urlParams?.fileType}` }), diff --git a/src/pages/InstallExe/exeDialog/CodeManage.tsx b/src/pages/InstallExe/exeDialog/CodeManage.tsx index dd52e0a..9160b36 100644 --- a/src/pages/InstallExe/exeDialog/CodeManage.tsx +++ b/src/pages/InstallExe/exeDialog/CodeManage.tsx @@ -52,6 +52,10 @@ const CodeManage: FC = ({ setActive((e) => { return e + 1 }) } + const getName = () => { + return urlParams?.fileType == 'offLine' ? '离线版' : '在线版' + } + // 在指定的目录下安装快捷方式 const installSuccess = async () => { try { @@ -60,7 +64,7 @@ const CodeManage: FC = ({ headers: { 'Content-Type': 'application/json' }, mode: "cors", body: JSON.stringify({ - folderPath: `${DEV.FILE_URL}/${countType[urlParams?.fileType]}`, + folderPath: `${DEV.FILE_URL}/${getName()}/${countType[urlParams?.fileType]}`, shortcutName: '专用核心密码综合管理系统', shortcutURL: `${DEV.LOCAL_URL}/initialSystem/${urlParams?.fileType}` }), diff --git a/src/pages/InstallExe/exeDialog/CoreArea.tsx b/src/pages/InstallExe/exeDialog/CoreArea.tsx index 8a1313c..e2cb199 100644 --- a/src/pages/InstallExe/exeDialog/CoreArea.tsx +++ b/src/pages/InstallExe/exeDialog/CoreArea.tsx @@ -62,6 +62,10 @@ const CoreArea: FC = ({ setActive((e) => { return e + 1 }) } + const getName = () => { + return urlParams?.fileType == 'offLine' ? '离线版' : '在线版' + } + // 在指定的目录下安装快捷方式 const installSuccess = async () => { try { @@ -70,7 +74,7 @@ const CoreArea: FC = ({ headers: { 'Content-Type': 'application/json' }, mode: "cors", body: JSON.stringify({ - folderPath: `${DEV.FILE_URL}/${countType[urlParams?.fileType]}`, + folderPath: `${DEV.FILE_URL}/${getName()}/${countType[urlParams?.fileType]}`, shortcutName: '核心区客户端', shortcutURL: `${DEV.LOCAL_URL}/coreSystemEntrance/${urlParams?.fileType}?sysType=${encodeURIComponent(sysType[urlParams?.fileType] + 'hx')}` }), diff --git a/src/pages/InstallExe/exeDialog/DutyArea.tsx b/src/pages/InstallExe/exeDialog/DutyArea.tsx index 45f3c5e..0ba8b5b 100644 --- a/src/pages/InstallExe/exeDialog/DutyArea.tsx +++ b/src/pages/InstallExe/exeDialog/DutyArea.tsx @@ -62,6 +62,10 @@ const DutyArea: FC = ({ setActive((e) => { return e + 1 }) } + const getName = () => { + return urlParams?.fileType == 'offLine' ? '离线版' : '在线版' + } + // 在指定的目录下安装快捷方式 const installSuccess = async () => { try { @@ -70,7 +74,7 @@ const DutyArea: FC = ({ headers: { 'Content-Type': 'application/json' }, mode: "cors", body: JSON.stringify({ - folderPath: `${DEV.FILE_URL}/${countType[urlParams?.fileType]}`, + folderPath: `${DEV.FILE_URL}/${getName()}/${countType[urlParams?.fileType]}`, shortcutName: '执勤区客户端', shortcutURL: `${DEV.LOCAL_URL}/coreSystemEntrance/${urlParams?.fileType}?sysType=${encodeURIComponent(sysType[urlParams?.fileType] + 'zq')}` }),