From 3085935fbdc96b23d8852c35daa8e1a398ba442d Mon Sep 17 00:00:00 2001
From: zhongshujie <2862698242@qq.com>
Date: 星期四, 17 十月 2024 10:37:44 +0800
Subject: [PATCH] bug优化

---
 src/App.vue |   18 ++++++++----------
 1 files changed, 8 insertions(+), 10 deletions(-)

diff --git a/src/App.vue b/src/App.vue
index c598bd8..e956ce5 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -34,12 +34,10 @@
   async created() {
     if (this.setGlobalState) {
       this.setGlobalState({
-
         initTestBook: async (bookId, tryPageCount) => {
           this.activeBook = await this.config.getBookConfig(
             process.env.VUE_APP_RESOURCE_CTX + process.env.VUE_APP_BOOK_ID
           );
-
           this.config.activeBook = this.activeBook;
           this.config.goodsStore = this.activeBook.storeRefcode;
           if (tryPageCount) {
@@ -64,18 +62,18 @@
       // artAndDrama
       // mathBook
 
-      this.activeBook = await this.config.getBookConfig(
-      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_RESOURCE_CTX +
       //   (process.env.VUE_APP_ENV == "product"
       //     ? process.env.VUE_APP_BOOK_ID
-      //     : "botany")
+      //     : "artAndDrama")
       // );
+      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