YM
2024-05-22 3e17c0d3c0e94602376dec43b9dd55e1abb094d0
src/App.vue
@@ -1,23 +1,40 @@
<template>
  <div id="app">
    <childHealth v-if="config.activeBook.name == 'childHealth'"></childHealth>
    <book v-if="config.activeBook.name == 'content'"></book>
    <embedded v-if="config.activeBook.name == 'embedded'" ></embedded>
    <childHealth v-if="activeBook.name == 'childHealth'"></childHealth>
    <book v-if="activeBook.name == 'content'"></book>
    <embedded v-if="activeBook.name == 'embedded'"></embedded>
    <english v-if="activeBook.name == 'english'"></english>
  </div>
</template>
<script>
import childHealth from "./books/childHealth/view/index.vue";
import book from './books/content/index.vue'
import embedded from "./books/embedded/view/index.vue"
import book from "./books/content/index.vue";
import embedded from "./books/embedded/view/index.vue";
import english from "./books/English/view/index.vue"
export default {
  name: "App",
  components: {
    childHealth,
    book,
    embedded
  }
    embedded,
    english
  },
  data() {
    return {
      activeBook: {},
    };
  },
  async created() {
    this.activeBook = this.thisBookConfig;
    console.log('图书',this.activeBook);
    if (this.$store.state.qiankun,this.$store.state.qiankun.getBookConfig) {
      this.$store.state.qiankun.getBookConfig({
        bookConfig: this.activeBook,
      });
    }
  },
};
</script>