Преглед изворни кода

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

zhouna пре 6 година
родитељ
комит
bccb8d19b4
1 измењених фајлова са 1 додато и 1 уклоњено
  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('');
       }