杨磊
2025-07-23 506a01b77de957b1fcbc238888abf9386fdc3577
src/App.vue
@@ -46,7 +46,6 @@
    <MMVRTCMP v-if="activeBook.name == 'MMVRTCMP'"></MMVRTCMP>
    <civilPassengerTransport v-if="activeBook.name == 'civilPassengerTransport'"> </civilPassengerTransport>
    <UAVTechIntro v-if="activeBook.name == 'UAVTechIntro'"></UAVTechIntro>
    <textToddlerSportsSafetyProtection  v-if="activeBook.name == 'textToddlerSportsSafetyProtection'"></textToddlerSportsSafetyProtection>
  </div>
</template>
<script>
@@ -133,9 +132,6 @@
    civilPassengerTransport: () =>
      import("./books/civilPassengerTransport/view/index.vue"),
    UAVTechIntro: () => import("./books/UAVTechIntro/view/index.vue"),
    textToddlerSportsSafetyProtection:() => import(
      "./books/textToddlerSportsSafetyProtection/view/index.vue"
    )
  },
  data() {
    return {
@@ -202,12 +198,11 @@
      // MMVRTCMP                               // 视觉手册
      // civilPassengerTransport                // 民航旅客运输
      // UAVTechIntro                           // 无人机应用技术导论
      // textToddlerSportsSafetyProtection      // 测试图书
      this.activeBook = await this.config.getBookConfig(
        process.env.VUE_APP_RESOURCE_CTX +
        (process.env.VUE_APP_ENV == "product"
          ? process.env.VUE_APP_BOOK_ID
          : "kindergartenLanguageActivity")
          : "aurturingAndEducationAged0to3")
      );
      // 测试试读30页
      // this.activeBook.tryPageCount = 10;
@@ -216,7 +211,6 @@
      // 旅游社处理跨域问题
      // this.activeBook = this.config.activeBook;
      this.config.activeBook = this.activeBook;
      console.log(this.activeBook, "this.activeBook");
      this.config.goodsStore = this.activeBook.storeRefcode;
    }
  },