ソースを参照

Merge branch 'dev_v1.1.4' into dev_1.1.5

wenliming 2 年 前
コミット
f52b0e1a3c
1 ファイル変更3 行追加0 行削除
  1. 3 0
      src/view/iframe/publish/tool-box/child/editor.vue

+ 3 - 0
src/view/iframe/publish/tool-box/child/editor.vue

@@ -142,6 +142,9 @@ const searchHandler = async () => {
 const getTitleByHtmlStr = (str) => {
   let index1 = str.indexOf('<title>') + 7;
   let index2 = str.indexOf('</title>');
+  if(index2 < 0) {
+    return '';
+  }
   return str.substring(index1, index2) || '';
 };