|
|
|
@ -52,6 +52,10 @@ const CodeManage: FC<PageProps> = ({
|
|
|
|
|
setActive((e) => { return e + 1 })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const getName = () => {
|
|
|
|
|
return urlParams?.fileType == 'offLine' ? '离线版' : '在线版'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 在指定的目录下安装快捷方式
|
|
|
|
|
const installSuccess = async () => {
|
|
|
|
|
try {
|
|
|
|
@ -60,7 +64,7 @@ const CodeManage: FC<PageProps> = ({
|
|
|
|
|
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}`
|
|
|
|
|
}),
|
|
|
|
|