更新安装页面内容

master
鲁誉程 10 months ago
parent 6d480464b8
commit e203dc75d9

@ -76,7 +76,7 @@ const CoreArea: FC<PageProps> = ({
}),
});
const data = await response.text();
setInstallExe(10, data)
setInstallExe(9, data)
onCancel()
} catch (error) {
message.error(error); // 处理请求错误

@ -45,7 +45,7 @@ interface PageProps { }
const InstallExe: FC<PageProps> = ({ }) => {
const urlParams = useParams();
const [listData, setListData] = useState<any[]>([]);
const [listData, setListData] = useState<any[]>(typeData);
const [open1, setOpen1] = useState(false); // Gbase
const [open2, setOpen2] = useState(false); // HGoogleEarth
const [open3, setOpen3] = useState(false); // MSXML4
@ -174,14 +174,6 @@ const InstallExe: FC<PageProps> = ({ }) => {
message.success(text)
}
}
const handleClose = (index: number) => {
let sysName = localStorage.getItem(`${urlParams?.fileType}`);
if (sysName) {
let info = JSON.parse(sysName);
info.installExe[index].select = false;
localStorage.setItem(`${urlParams?.fileType}`, JSON.stringify(info));
}
}
// 取消选中
const uncheck = (name: any) => {

Loading…
Cancel
Save