Компонент ServerStorage, добавлена работа с api reader/storage

This commit is contained in:
Book Pauk
2019-03-11 19:22:59 +07:00
parent 7dc76b4222
commit c72fd7ee9c
3 changed files with 60 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
<template>
<div></div>
</template>
<script>
//-----------------------------------------------------------------------------
import Vue from 'vue';
import Component from 'vue-class-component';
import bookManager from '../share/bookManager';
import readerApi from '../../../api/reader';
export default @Component({
})
class ServerStorage extends Vue {
created() {
this.commit = this.$store.commit;
}
async init() {
/*const items = {
'1': {rev: 1, data: 1},
};
console.log(await readerApi.storageSet(items));*/
}
get settings() {
return this.$store.state.reader.settings;
}
}
//-----------------------------------------------------------------------------
</script>