Рефакторинг

This commit is contained in:
Book Pauk
2019-01-28 12:46:53 +07:00
parent fbb0fa91b6
commit 7309f2f80e
3 changed files with 25 additions and 15 deletions

View File

@@ -92,7 +92,7 @@ import Vue from 'vue';
import Component from 'vue-class-component';
import Window from '../../share/Window.vue';
import reader from '../../../store/modules/reader';
import rstore from '../../../store/modules/reader';
const propsData = {
textColor: '#000000',
@@ -147,6 +147,7 @@ class SettingsPage extends Vue {
fontItalic = false;
webFonts = [];
fonts = [];
created() {
this.commit = this.$store.commit;
@@ -161,7 +162,9 @@ class SettingsPage extends Vue {
}
this.fontBold = (this.fontWeight == 'bold');
this.fontItalic = (this.fontStyle == 'italic');
this.webFonts = reader.webFonts;
this.fonts = rstore.fonts;
this.webFonts = rstore.webFonts;
}
get settings() {