From 4e68cb72a00ab280d3fceaa91b201a155499d817 Mon Sep 17 00:00:00 2001 From: wkj <278599135@qq.com> Date: Tue, 1 Nov 2022 18:04:28 +0800 Subject: [PATCH] =?UTF-8?q?oakDisablePulldownRefresh=20=E6=B3=A8=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/babel-plugin/router.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/config/babel-plugin/router.js b/config/babel-plugin/router.js index 23226d5..a3316f3 100644 --- a/config/babel-plugin/router.js +++ b/config/babel-plugin/router.js @@ -259,7 +259,7 @@ function getRouter({ projectOrPath, path, namespace, disableAssemble, isFirst }) if (jsonFileExists) { const { navigationBarTitleText, - enablePullDownRefresh = true, + oakDisablePulldownRefresh = false, } = require(`${relPath}.json`); meta.push( t.objectProperty( @@ -269,8 +269,8 @@ function getRouter({ projectOrPath, path, namespace, disableAssemble, isFirst }) ); meta.push( t.objectProperty( - t.identifier('enablePullDownRefresh'), - t.booleanLiteral(enablePullDownRefresh) //默认启用下拉刷新 + t.identifier('oakDisablePulldownRefresh'), + t.booleanLiteral(oakDisablePulldownRefresh) //默认启用下拉刷新 ) ); } @@ -330,7 +330,7 @@ function getNamespaceRouter({ namespaces, namespace, filename }) { if (jsonFileExists) { const { navigationBarTitleText, - enablePullDownRefresh = false, + oakDisablePulldownRefresh = true, } = require(`${relPath}.json`); meta.push( t.objectProperty( @@ -340,8 +340,8 @@ function getNamespaceRouter({ namespaces, namespace, filename }) { ); meta.push( t.objectProperty( - t.identifier('enablePullDownRefresh'), - t.booleanLiteral(enablePullDownRefresh) // 嵌套路由顶层默认不启用下拉刷新 + t.identifier('oakDisablePulldownRefresh'), + t.booleanLiteral(oakDisablePulldownRefresh) // 嵌套路由顶层默认不启用下拉刷新 ) ); }