From 7459b4778cd9d592ea8f6dfe5e6fe3688f537365 Mon Sep 17 00:00:00 2001
From: YM <479443481@qq.com>
Date: 星期三, 22 五月 2024 21:09:34 +0800
Subject: [PATCH] 1

---
 src/assets/js/config.js                      |    2 --
 src/App.vue                                  |    4 ++++
 src/books/childHealth/view/content/index.vue |    1 +
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/App.vue b/src/App.vue
index e27c01e..58a94a1 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -31,6 +31,8 @@
       this.setGlobalState({
         initTestBook: async (bookId) => {
           this.activeBook = await this.config.getBookConfig(bookId);
+          this.config.activeBook = this.activeBook;
+          this.config.goodsStore = this.activeBook.storeRefcode;
           console.log("鍥句功", this.activeBook);
           if (
             (this.$store.state.qiankun, this.$store.state.qiankun.getBookConfig)
@@ -43,6 +45,8 @@
       });
     } else {
       this.activeBook = await this.config.getBookConfig();
+      this.config.activeBook = this.activeBook;
+      this.config.goodsStore = this.activeBook.storeRefcode;
     }
   }
 };
diff --git a/src/assets/js/config.js b/src/assets/js/config.js
index 2696dba..8b144b4 100644
--- a/src/assets/js/config.js
+++ b/src/assets/js/config.js
@@ -7,8 +7,6 @@
   const response = await axios.get(
     resourceCtx + (bookId ? bookId : "1") + "/bookConfig.json"
   );
-  activeBook = response.data;
-  goodsStore = response.data.storeRefcode;
   return response.data;
 };
 export const appId = 3;
diff --git a/src/books/childHealth/view/content/index.vue b/src/books/childHealth/view/content/index.vue
index fa1db7f..50994d1 100644
--- a/src/books/childHealth/view/content/index.vue
+++ b/src/books/childHealth/view/content/index.vue
@@ -294,6 +294,7 @@
       const borderColorDom = (
         this.container ? this.container : document
       ).querySelectorAll(".theme-border");
+      console.log(this.config,'this.configthis.config');
       // 鑾峰彇閰嶇疆鐨勪富棰樿壊
       const bookThemeColor =
         this.config.activeBook && this.config.activeBook.bookThemeColor

--
Gitblit v1.9.1