添加跳转apt页面

This commit is contained in:
zhangxuelin 2024-09-10 15:21:46 +08:00
parent eaf2d82ead
commit 7ed7b2efd2
1 changed files with 10 additions and 0 deletions

View File

@ -232,6 +232,16 @@ export default {
openFileWin(items) {
if (items.fileFlag === 'apt') {
console.log(items);
const path="/teaching/aptindex?id="+items.fileId
let configObj = outLink().getBaseData()
let fullPath = configObj.fullPath + path
fullPath = fullPath.replaceAll('//', '/')
//
ipcRenderer.send('openWindow', {
key: path,
fullPath: fullPath,
cookieData: { ...configObj.data }
})
return
}
if (!items||!items.fileSuffix) return;