Skip to content

Commit 1fb2a57

Browse files
committed
fix(init): use AV.setProduction in AV.init
https://leanticket.cn/tickets/21748
1 parent 46c22d0 commit 1fb2a57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/init.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ AV.init = function init(options, ...params) {
8787
AV._config.masterKey = masterKey;
8888
if (!process.env.CLIENT_PLATFORM)
8989
AV._config.hookKey = hookKey || process.env.LEANCLOUD_APP_HOOK_KEY;
90-
if (typeof production !== 'undefined') AV._config.production = production;
90+
AV.setProduction(production);
9191
if (typeof disableCurrentUser !== 'undefined')
9292
AV._config.disableCurrentUser = disableCurrentUser;
9393
AV._appRouter = new AppRouter(AV);

0 commit comments

Comments
 (0)