更新调试1

master
鲁誉程 9 months ago
parent 3efddb6dbe
commit 83237bd824

@ -53,6 +53,9 @@ const PowerOnAuth: FC<PageProps> = ({ }) => {
}
}, [])
const getName = () => {
return urlParams?.fileType == 'offLine' ? '离线版' : '在线版'
}
// 在指定的目录下安装快捷方式
const installSuccess = async () => {
@ -62,7 +65,7 @@ const PowerOnAuth: 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}/restartService/${urlParams?.fileType}`
}),

@ -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}`
}),

@ -62,6 +62,10 @@ const CoreArea: FC<PageProps> = ({
setActive((e) => { return e + 1 })
}
const getName = () => {
return urlParams?.fileType == 'offLine' ? '离线版' : '在线版'
}
// 在指定的目录下安装快捷方式
const installSuccess = async () => {
try {
@ -70,7 +74,7 @@ const CoreArea: 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}/coreSystemEntrance/${urlParams?.fileType}?sysType=${encodeURIComponent(sysType[urlParams?.fileType] + 'hx')}`
}),

@ -62,6 +62,10 @@ const DutyArea: FC<PageProps> = ({
setActive((e) => { return e + 1 })
}
const getName = () => {
return urlParams?.fileType == 'offLine' ? '离线版' : '在线版'
}
// 在指定的目录下安装快捷方式
const installSuccess = async () => {
try {
@ -70,7 +74,7 @@ const DutyArea: 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}/coreSystemEntrance/${urlParams?.fileType}?sysType=${encodeURIComponent(sysType[urlParams?.fileType] + 'zq')}`
}),

Loading…
Cancel
Save