node_modules updated, buefy add to lib folder
This commit is contained in:
+15
-2
@@ -89,7 +89,19 @@ export default class VueRouter {
|
||||
|
||||
this.apps.push(app)
|
||||
|
||||
// main app already initialized.
|
||||
// set up app destroyed handler
|
||||
// https://github.com/vuejs/vue-router/issues/2639
|
||||
app.$once('hook:destroyed', () => {
|
||||
// clean out app from this.apps array once destroyed
|
||||
const index = this.apps.indexOf(app)
|
||||
if (index > -1) this.apps.splice(index, 1)
|
||||
// ensure we still have a main app or null if no apps
|
||||
// we do not release the router so it can be reused
|
||||
if (this.app === app) this.app = this.apps[0] || null
|
||||
})
|
||||
|
||||
// main app previously initialized
|
||||
// return as we don't need to set up new history listener
|
||||
if (this.app) {
|
||||
return
|
||||
}
|
||||
@@ -186,9 +198,10 @@ export default class VueRouter {
|
||||
normalizedTo: Location,
|
||||
resolved: Route
|
||||
} {
|
||||
current = current || this.history.current
|
||||
const location = normalizeLocation(
|
||||
to,
|
||||
current || this.history.current,
|
||||
current,
|
||||
append,
|
||||
this
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user