pug-site-core 2.0.1 → 2.0.2
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/lib/devServer.js +1 -1
- package/package.json +2 -2
package/lib/devServer.js
CHANGED
|
@@ -171,7 +171,7 @@ async function matchRouter(url, language, device) {
|
|
|
171
171
|
for (let index = 0; index < router.length; index++) {
|
|
172
172
|
const obj = router[index];
|
|
173
173
|
if (obj.matchFn.call(params)) {
|
|
174
|
-
let data = obj.getData.call(params);
|
|
174
|
+
let data = await obj.getData.call(params);
|
|
175
175
|
let pugPath = obj.getPagesFnName.call(params);
|
|
176
176
|
pugPath = pugPath.split("_").join(pathSymbol);
|
|
177
177
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pug-site-core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"axios": "^1.7.7"
|
|
38
38
|
},
|
|
39
39
|
"license": "ISC",
|
|
40
|
-
"description": "
|
|
40
|
+
"description": "修复拿数据bug",
|
|
41
41
|
"files": [
|
|
42
42
|
"lib/",
|
|
43
43
|
"index.js"
|