Преглед на файлове

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) || '';
 };