Skip to content

Commit 312e576

Browse files
committed
give root app a name
1 parent 1e33f66 commit 312e576

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,11 @@ class Router {
241241
)
242242
}
243243
this._appContainer = container
244-
this._appConstructor = typeof App === 'function'
244+
const Ctor = this._appConstructor = typeof App === 'function'
245245
? App
246246
: Vue.extend(App)
247+
// give it a name for better debugging
248+
Ctor.options.name = Ctor.options.name || 'RouterApp'
247249
}
248250
this.history.start()
249251
}

0 commit comments

Comments
 (0)