@afeefa/vue-app 0.0.149 → 0.0.150
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
|
}
|