From e7e1314cccd1a66fcf8b8526ec21350ec16cc3ad Mon Sep 17 00:00:00 2001 From: Evan You Date: Mon, 9 Dec 2019 14:23:01 -0500 Subject: [PATCH] test: fix warning --- packages/runtime-core/src/apiApp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime-core/src/apiApp.ts b/packages/runtime-core/src/apiApp.ts index 71b75821..53614ca2 100644 --- a/packages/runtime-core/src/apiApp.ts +++ b/packages/runtime-core/src/apiApp.ts @@ -166,7 +166,7 @@ export function createAppAPI( rootProps?: Data | null ): any { if (!isMounted) { - if (!isObject(rootProps)) { + if (rootProps != null && !isObject(rootProps)) { __DEV__ && warn(`root props passed to app.mount() must be an object.`) rootProps = null