Evan You 8 лет назад
Родитель
Сommit
08660e876d
1 измененных файлов с 5 добавлено и 3 удалено
  1. 5 3
      src/platforms/weex/compiler/modules/recycle-list/index.js

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

@@ -33,9 +33,11 @@ function postTransformNode (el: ASTElement) {
 function genText (node) {
 function genText (node) {
   const value = node.type === 3
   const value = node.type === 3
     ? node.text
     ? node.text
-    : node.tokens.length === 1
-      ? node.tokens[0]
-      : node.tokens
+    : node.type === 2
+      ? node.tokens.length === 1
+        ? node.tokens[0]
+        : node.tokens
+      : ''
   return JSON.stringify(value)
   return JSON.stringify(value)
 }
 }