Skip to content

Commit

Permalink
fix(vue-simulator-renderer): 修复 appHelper 为空时报错
Browse files Browse the repository at this point in the history
  • Loading branch information
knight.chen committed Sep 29, 2022
1 parent b006576 commit 1e3db97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue-simulator-renderer/src/simulator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ function createSimulatorRenderer() {
});

host.injectionConsumer.consume((data) => {
if (context.appHelper) {
if (data.appHelper) {
const { utils, constants, ...others } = data.appHelper;
Object.assign(context.appHelper, {
utils: Array.isArray(utils) ? buildUtils(host.libraryMap, utils) : utils ?? {},
Expand Down

0 comments on commit 1e3db97

Please sign in to comment.