@afeefa/vue-app 0.0.149 → 0.0.150
Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.150
|
package/package.json
CHANGED
@@ -144,9 +144,11 @@ class RouteConfigPlugin {
|
|
144
144
|
|
145
145
|
const options = {
|
146
146
|
mode: 'history',
|
147
|
-
scrollBehavior (
|
147
|
+
scrollBehavior (to, from, savedPosition) {
|
148
148
|
if (savedPosition) {
|
149
149
|
return savedPosition
|
150
|
+
} else if (to.path === from.path) { // don't scroll just query changes === probably list navigation
|
151
|
+
return {}
|
150
152
|
} else {
|
151
153
|
return { x: 0, y: 0 }
|
152
154
|
}
|