File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
packages/@vue/cli-ui/src/mixins Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,7 @@ export default function ({
28
28
29
29
beforeRouteEnter ( to , from , next ) {
30
30
if ( lastRoute ) {
31
- if ( ! to . query ) {
32
- console . log ( 'lastRoute' , lastRoute )
31
+ if ( ! to . params || ! Object . keys ( to . params ) . length ) {
33
32
const { name, params, query } = lastRoute
34
33
next ( { name, params, query } )
35
34
return
@@ -45,15 +44,14 @@ export default function ({
45
44
} ,
46
45
47
46
mounted ( ) {
48
- this . $nextTick ( ( ) => {
47
+ setTimeout ( ( ) => {
49
48
this . $_restoreRouteReady = true
50
- } )
49
+ } , 100 )
51
50
} ,
52
51
53
52
methods : {
54
53
replaceBaseRoute ( ) {
55
54
if ( baseRoute && ! isSameRoute ( this . $route , baseRoute , false ) ) {
56
- console . log ( 'replaceBaseRoute' )
57
55
this . $router . replace ( baseRoute )
58
56
}
59
57
}
You can’t perform that action at this time.
0 commit comments