Browse Source

查体只有空标签时宽度bug修改1378

zhouna 6 years ago
parent
commit
bccb8d19b4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/common/js/func.js

+ 1 - 1
src/common/js/func.js

@@ -119,7 +119,7 @@ export const fullfillText = (arr,noPre=false,noEnd=false,ifEmpty=true)=>{
       }
       saveText.push(tempText);
       // 模板只有一个标签时第一项后面也要加空标签
-      if(arr.length==1){
+      if(arr.length==1&&notText){
         newArr.push(textLabel);
         saveText.push('');
       }