Skip to content

Commit

Permalink
fix: render 函数使用未声明的变量 initData
Browse files Browse the repository at this point in the history
  • Loading branch information
meixg committed Aug 9, 2021
1 parent 66c9253 commit ef4bb5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compilers/renderer-compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ export class RendererCompiler {
const item = BINARY(BINARY(I('ctx'), '.', I('data')), '[]', I('key'))

return [
ASSIGN(
I('initData'),
DEF(
'initData',
new FunctionCall(BINARY(I('instance'), '.', I('initData')), [])
),
createDefaultValue(I('initData'), new MapLiteral([])),
Expand Down

0 comments on commit ef4bb5e

Please sign in to comment.