Skip to content

Commit 08660e8

Browse files
committed
refactor: fix types
1 parent 5254ee3 commit 08660e8

File tree

1 file changed

+5
-3
lines changed
  • src/platforms/weex/compiler/modules/recycle-list

1 file changed

+5
-3
lines changed

src/platforms/weex/compiler/modules/recycle-list/index.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ function postTransformNode (el: ASTElement) {
3333
function genText (node) {
3434
const value = node.type === 3
3535
? node.text
36-
: node.tokens.length === 1
37-
? node.tokens[0]
38-
: node.tokens
36+
: node.type === 2
37+
? node.tokens.length === 1
38+
? node.tokens[0]
39+
: node.tokens
40+
: ''
3941
return JSON.stringify(value)
4042
}
4143

0 commit comments

Comments
 (0)