소스 검색

Добавил поддержку allowUrlParamBookPos в настройках

Book Pauk 6 년 전
부모
커밋
af6c57830c
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      client/components/Reader/Reader.vue

+ 8 - 0
client/components/Reader/Reader.vue

@@ -111,6 +111,10 @@ export default @Component({
                 this.loadBook({url: newValue, bookPos: this.routeParamPos});
             }
         },
+        settings: function(newValue) {
+            this.allowUrlParamBookPos = newValue.allowUrlParamBookPos;
+            this.updateRoute();
+        },
     },
 })
 class Reader extends Vue {
@@ -208,6 +212,10 @@ class Reader extends Vue {
         return result;
     }
 
+    get settings() {
+        return this.$store.state.reader.settings;
+    }
+
     toolBarToggle() {
         this.commit('reader/setToolBarActive', !this.toolBarActive);
         this.$root.$emit('resize');