openwindow
This commit is contained in:
parent
4a5fb04362
commit
5712e77a29
|
@ -84,16 +84,13 @@ function createOpenWin(data) {
|
|||
nodeIntegration: true
|
||||
}
|
||||
})
|
||||
|
||||
openWindow.webContents.session.cookies.set({...data.cookieData},
|
||||
(error)=> {
|
||||
if (error) {
|
||||
console.error('Set cookie failed:', error)
|
||||
} else {
|
||||
console.log('Cookie set successfully.')
|
||||
}
|
||||
}
|
||||
)
|
||||
let cookieDetails = {...data.cookieData}
|
||||
openWindow.webContents.session.cookies.set(cookieDetails).then(()=>{
|
||||
console.log('Cookie set successfully.')
|
||||
}).catch(err =>{
|
||||
console.error('Set cookie failed:', error)
|
||||
})
|
||||
|
||||
openWindow.loadURL(data.fullPath)
|
||||
|
||||
openWindow.once('ready-to-show', () => {
|
||||
|
|
|
@ -276,7 +276,6 @@ export default {
|
|||
nodeClick(data) {
|
||||
if (this.currentNode.id === data.node.id) return
|
||||
this.curBookImg = data.textBook.curBookImg
|
||||
console.log(data.textBook)
|
||||
this.checkFileList = []
|
||||
let cata = parseCataByNode(data.node)
|
||||
this.currentNode = data.node
|
||||
|
|
Loading…
Reference in New Issue