TextPage.vue 878 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template>
  2. <div class="main">
  3. <pre>{{ lastOpenedBook }}</pre>
  4. </div>
  5. </template>
  6. <script>
  7. //-----------------------------------------------------------------------------
  8. import Vue from 'vue';
  9. import Component from 'vue-class-component';
  10. import bookManager from '../share/bookManager';
  11. export default @Component({
  12. })
  13. class TextPage extends Vue {
  14. created() {
  15. this.commit = this.$store.commit;
  16. this.dispatch = this.$store.dispatch;
  17. this.config = this.$store.state.config;
  18. this.reader = this.$store.state.reader;
  19. }
  20. get lastOpenedBook() {
  21. return this.$store.getters['reader/lastOpenedBook'];
  22. }
  23. keyHook(event) {
  24. }
  25. }
  26. //-----------------------------------------------------------------------------
  27. </script>
  28. <style scoped>
  29. .main {
  30. flex: 1;
  31. display: flex;
  32. flex-direction: column;
  33. }
  34. </style>