Skip to content

Commit 0792cb4

Browse files
committed
refactor(Notify): addition to previous backport commit
1 parent 9c60545 commit 0792cb4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ui/src/plugins/Notify.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { getBodyFullscreenElement } from '../utils/dom.js'
1010
import debounce from '../utils/debounce.js'
1111
import { isSSR } from './Platform.js'
1212

13-
let uid = 0
13+
let uid = 0, vm
1414

1515
const defaults = {}
1616
const groups = {}
@@ -532,7 +532,7 @@ export default {
532532
install ({ $q }) {
533533
$q.notify = this.create = isSSR === true
534534
? noop
535-
: opts => addNotification(opts, this.__vm)
535+
: opts => addNotification(opts, vm)
536536

537537
$q.notify.setDefaults = this.setDefaults
538538
$q.notify.registerType = this.registerType
@@ -556,8 +556,8 @@ export default {
556556
const node = document.createElement('div')
557557
document.body.appendChild(node)
558558

559-
this.__vm = new Vue(Notifications)
560-
this.__vm.$mount(node)
559+
vm = new Vue(Notifications)
560+
vm.$mount(node)
561561
}
562562
}
563563
}

0 commit comments

Comments
 (0)