瀏覽代碼

Поправки дефолтных сетевых библиотек для режима omnireader

Book Pauk 2 年之前
父節點
當前提交
7b7146b502
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 1
      client/components/Reader/LibsPage/LibsPage.vue
  2. 1 0
      client/store/modules/reader.js

+ 1 - 1
client/components/Reader/LibsPage/LibsPage.vue

@@ -38,7 +38,7 @@ class LibsPage {
             i++;
         }
 
-        if (!this.libs) {
+        if (!this.libs || (this.mode = 'omnireader' && this.libs.mode !== this.mode)) {
             const defaults = rstore.getLibsDefaults(this.mode);
             this.commit('reader/setLibs', defaults);
         }

+ 1 - 0
client/store/modules/reader.js

@@ -236,6 +236,7 @@ function getLibsDefaults(mode = 'reader') {
         openInFrameOnEnter: false,
         openInFrameOnAdd: false,
         helpShowed: false,
+        mode,
         groups: [
             {r: 'http://samlib.ru', s: 'http://samlib.ru', list: [
                 {l: 'http://samlib.ru', c: 'Журнал "Самиздат"'},