Skip to content

Commit 1e3db97

Browse files
author
knight.chen
committed
fix(vue-simulator-renderer): 修复 appHelper 为空时报错
1 parent b006576 commit 1e3db97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vue-simulator-renderer/src/simulator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ function createSimulatorRenderer() {
393393
});
394394

395395
host.injectionConsumer.consume((data) => {
396-
if (context.appHelper) {
396+
if (data.appHelper) {
397397
const { utils, constants, ...others } = data.appHelper;
398398
Object.assign(context.appHelper, {
399399
utils: Array.isArray(utils) ? buildUtils(host.libraryMap, utils) : utils ?? {},

0 commit comments

Comments
 (0)