Skip to content

Commit cac2d42

Browse files
author
wangcuijuan
committed
补充传入onload的参数兜底空对象
1 parent e4944ef commit cac2d42

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/core/src/platform/patch/getDefaultOptions.ios.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ function createInstance ({ propsRef, type, rawOptions, currentInject, validProps
315315
if (type === 'page') {
316316
const props = propsRef.current
317317
const decodedQuery = {}
318-
const rawQuery = props.route.params
318+
const rawQuery = props.route.params || {}
319319
if (isObject(rawQuery)) {
320320
for (const key in rawQuery) {
321321
decodedQuery[key] = decodeURIComponent(rawQuery[key])

0 commit comments

Comments
 (0)