@vuepress/client 2.0.0-beta.65 → 2.0.0-beta.66
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.
- package/dist/app.js +1 -9
- package/package.json +2 -2
package/dist/app.js
CHANGED
|
@@ -101,21 +101,13 @@ var createVueRouter = () => {
|
|
|
101
101
|
return { top: 0 };
|
|
102
102
|
}
|
|
103
103
|
});
|
|
104
|
-
let pendingPageData;
|
|
105
|
-
let pendingToPath;
|
|
106
104
|
router.beforeResolve(async (to, from) => {
|
|
107
105
|
if (to.path !== from.path || from === START_LOCATION) {
|
|
108
106
|
;
|
|
109
|
-
[
|
|
107
|
+
[pageData.value] = await Promise.all([
|
|
110
108
|
resolvers.resolvePageData(to.name),
|
|
111
109
|
pagesComponents[to.name]?.__asyncLoader()
|
|
112
110
|
]);
|
|
113
|
-
pendingToPath = to.path;
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
router.afterEach((to, from) => {
|
|
117
|
-
if (to.path !== from.path && to.path === pendingToPath) {
|
|
118
|
-
pageData.value = pendingPageData;
|
|
119
111
|
}
|
|
120
112
|
});
|
|
121
113
|
return router;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuepress/client",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.66",
|
|
4
4
|
"description": "Client package of VuePress",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vuepress",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@vueuse/core": "^10.2.1",
|
|
38
38
|
"vue": "^3.3.4",
|
|
39
39
|
"vue-router": "^4.2.4",
|
|
40
|
-
"@vuepress/shared": "2.0.0-beta.
|
|
40
|
+
"@vuepress/shared": "2.0.0-beta.66"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|