lyc-dev #55

Merged
lyc merged 3 commits from lyc-dev into main 2024-07-23 14:08:24 +08:00
2 changed files with 7 additions and 11 deletions
Showing only changes of commit 5712e77a29 - Show all commits

View File

@ -84,16 +84,13 @@ function createOpenWin(data) {
nodeIntegration: true nodeIntegration: true
} }
}) })
let cookieDetails = {...data.cookieData}
openWindow.webContents.session.cookies.set({...data.cookieData}, openWindow.webContents.session.cookies.set(cookieDetails).then(()=>{
(error)=> {
if (error) {
console.error('Set cookie failed:', error)
} else {
console.log('Cookie set successfully.') console.log('Cookie set successfully.')
} }).catch(err =>{
} console.error('Set cookie failed:', error)
) })
openWindow.loadURL(data.fullPath) openWindow.loadURL(data.fullPath)
openWindow.once('ready-to-show', () => { openWindow.once('ready-to-show', () => {

View File

@ -276,7 +276,6 @@ export default {
nodeClick(data) { nodeClick(data) {
if (this.currentNode.id === data.node.id) return if (this.currentNode.id === data.node.id) return
this.curBookImg = data.textBook.curBookImg this.curBookImg = data.textBook.curBookImg
console.log(data.textBook)
this.checkFileList = [] this.checkFileList = []
let cata = parseCataByNode(data.node) let cata = parseCataByNode(data.node)
this.currentNode = data.node this.currentNode = data.node