You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
414 B
12 lines
414 B
export function onWebviewClose (webview) {
|
|
webview.popupSubNVueWebviews && webview.addEventListener('close', () => {
|
|
Object.keys(webview.popupSubNVueWebviews).forEach(id => {
|
|
if (process.env.NODE_ENV !== 'production') {
|
|
console.log(
|
|
`UNIAPP[webview][${webview.id}]:popupSubNVueWebview[${id}].close`
|
|
)
|
|
}
|
|
webview.popupSubNVueWebviews[id].close('none')
|
|
})
|
|
})
|
|
}
|
|
|