|
|
@ -52,6 +52,10 @@ const CodeManage: FC<PageProps> = ({
|
|
|
|
setActive((e) => { return e + 1 })
|
|
|
|
setActive((e) => { return e + 1 })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const getName = () => {
|
|
|
|
|
|
|
|
return urlParams?.fileType == 'offLine' ? '离线版' : '在线版'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 在指定的目录下安装快捷方式
|
|
|
|
// 在指定的目录下安装快捷方式
|
|
|
|
const installSuccess = async () => {
|
|
|
|
const installSuccess = async () => {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
@ -60,7 +64,7 @@ const CodeManage: FC<PageProps> = ({
|
|
|
|
headers: { 'Content-Type': 'application/json' },
|
|
|
|
headers: { 'Content-Type': 'application/json' },
|
|
|
|
mode: "cors",
|
|
|
|
mode: "cors",
|
|
|
|
body: JSON.stringify({
|
|
|
|
body: JSON.stringify({
|
|
|
|
folderPath: `${DEV.FILE_URL}/${countType[urlParams?.fileType]}`,
|
|
|
|
folderPath: `${DEV.FILE_URL}/${getName()}/${countType[urlParams?.fileType]}`,
|
|
|
|
shortcutName: '专用核心密码综合管理系统',
|
|
|
|
shortcutName: '专用核心密码综合管理系统',
|
|
|
|
shortcutURL: `${DEV.LOCAL_URL}/initialSystem/${urlParams?.fileType}`
|
|
|
|
shortcutURL: `${DEV.LOCAL_URL}/initialSystem/${urlParams?.fileType}`
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|