json oakDisablePulldownRefresh改成 enablePullDownRefresh 和小程序统一

This commit is contained in:
Wang Kejun 2023-08-03 13:53:58 +08:00
parent ec97fbf7bd
commit 0aade57616
1 changed files with 2 additions and 2 deletions

View File

@ -185,7 +185,7 @@ function getRouter({ projectAlias, path, namespace, routePath, isFirst }) {
if (jsonFileExists) {
const {
navigationBarTitleText,
oakDisablePulldownRefresh = false,
enablePullDownRefresh = true,
} = require(`${relPath}.json`);
meta.push(
t.objectProperty(
@ -196,7 +196,7 @@ function getRouter({ projectAlias, path, namespace, routePath, isFirst }) {
meta.push(
t.objectProperty(
t.identifier('oakDisablePulldownRefresh'),
t.booleanLiteral(oakDisablePulldownRefresh) //默认启用下拉刷新
t.booleanLiteral(!enablePullDownRefresh) //默认启用下拉刷新
)
);
}