浏览代码

Поправка формирования заголовка

Book Pauk 2 年之前
父节点
当前提交
90be2a1447
共有 1 个文件被更改,包括 5 次插入4 次删除
  1. 5 4
      client/components/Search/Search.vue

+ 5 - 4
client/components/Search/Search.vue

@@ -588,12 +588,13 @@ class Search {
             const author = (as.length ? as[0] : '') + (as.length > 1 ? ' и др.' : '');
 
             const a = correctValue(author);
-            const sc = correctValue(search.series);
-            const s = (sc ? `(${sc})` : '');
-            const t = correctValue(search.title);
+            let s = correctValue(search.series);
+            s = (s ? `(${s})` : '');
+            let t = correctValue(search.title);
+            t = (t ? `"${t}"` : '');
 
             result = [s, t].filter(v => v).join(' ');
-            result = [a, result].filter(v => v).join(' - ');
+            result = [a, result].filter(v => v).join(' ');
         }
 
         this.$root.setAppTitle(result);