Jelajahi Sumber

[fix] title

wenliming 2 tahun lalu
induk
melakukan
ba7ab21117
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      src/view/iframe/publish/tool-box/child/editor.vue

+ 2 - 1
src/view/iframe/publish/tool-box/child/editor.vue

@@ -146,7 +146,8 @@ const getTitleByHtmlStr = (str = '') => {
   let tag_end = '</title>'
   let index1 = str.indexOf(tag_start) + tag_start.length;
   let index2 = str.indexOf(tag_end);
-  if (index1 < 0 || index2 < 0) {
+  
+  if (index1 < tag_start.length || index2 < 0) {
     return '';
   }