From fc02f690bfea99d3f41f2a690063cff71577915b Mon Sep 17 00:00:00 2001
From: zhongshujie <2862698242@qq.com>
Date: 星期三, 16 十月 2024 18:03:03 +0800
Subject: [PATCH] 农大社

---
 src/App.vue |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/src/App.vue b/src/App.vue
index 8c205de..c598bd8 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -8,6 +8,7 @@
     <artAndDance v-if="activeBook.name == 'artAndDance'"></artAndDance>
     <artAndDrama v-if="activeBook.name == 'artAndDrama'"></artAndDrama>
     <mathBook v-if="activeBook.name == 'mathBook'"></mathBook>
+    <botany v-if="activeBook.name == 'botany'"></botany>
   </div>
 </template>
 
@@ -22,8 +23,8 @@
     sportsAndHealth: () => import("./books/sportsAndHealth/view/index.vue"),
     artAndDance: () => import("./books/artAndDance/view/index.vue"),
     mathBook: () => import("./books/mathBook/view/index.vue"),
-    artAndDrama: () => import("./books/artAndDrama/view/index.vue")
-
+    artAndDrama: () => import("./books/artAndDrama/view/index.vue"),
+    botany: () => import("./books/botany/view/index.vue")
   },
   data() {
     return {
@@ -35,7 +36,6 @@
       this.setGlobalState({
 
         initTestBook: async (bookId, tryPageCount) => {
-
           this.activeBook = await this.config.getBookConfig(
             process.env.VUE_APP_RESOURCE_CTX + process.env.VUE_APP_BOOK_ID
           );
@@ -63,12 +63,19 @@
       // artAndDance
       // artAndDrama
       // mathBook
+
       this.activeBook = await this.config.getBookConfig(
-        process.env.VUE_APP_RESOURCE_CTX +
+      process.env.VUE_APP_RESOURCE_CTX +
         (process.env.VUE_APP_ENV == "product"
           ? process.env.VUE_APP_BOOK_ID
           : "sportsAndHealth")
       );
+      // this.activeBook = await this.config.getBookConfig(
+      //   'http://182.92.203.7:3007/books/resource/'+
+      //   (process.env.VUE_APP_ENV == "product"
+      //     ? process.env.VUE_APP_BOOK_ID
+      //     : "botany")
+      // );
       // 娴嬭瘯璇曡30椤�
       // this.activeBook.tryPageCount = 10;
       this.config.activeBook = this.activeBook;

--
Gitblit v1.9.1