File tree Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -39,14 +39,6 @@ export default function (Vue) {
3939 this . keepAlive = false
4040 warn ( '<router-view> does not support keep-alive.' )
4141 }
42- /* istanbul ignore if */
43- if ( this . waitForEvent ) {
44- this . waitForEvent = null
45- warn (
46- '<router-view> does not support wait-for. Use ' +
47- 'the acitvate route hook instead.'
48- )
49- }
5042
5143 // all we need to do here is registering this view
5244 // in the router. actual component switching will be
Original file line number Diff line number Diff line change @@ -9,15 +9,15 @@ export default exports
99 * Warn stuff.
1010 *
1111 * @param {String } msg
12- * @param {Error } [err]
1312 */
1413
15- export function warn ( msg , err ) {
14+ export function warn ( msg ) {
1615 /* istanbul ignore next */
1716 if ( window . console ) {
1817 console . warn ( '[vue-router] ' + msg )
19- if ( err ) {
20- console . warn ( err . stack )
18+ /* istanbul ignore if */
19+ if ( ! exports . Vue || exports . Vue . config . debug ) {
20+ console . warn ( new Error ( 'warning stack trace:' ) . stack )
2121 }
2222 }
2323}
You can’t perform that action at this time.
0 commit comments