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 | 21 +++++++++++++-------- 1 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/App.vue b/src/App.vue index 28bc26f..e956ce5 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,5 @@ <template> <div id="app"> - <childHealth v-if="activeBook.name == 'childHealth'"></childHealth> <lifeCare v-if="activeBook.name == 'lifeCare'"></lifeCare> <embedded v-if="activeBook.name == 'embedded'"></embedded> @@ -9,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> @@ -19,11 +19,12 @@ childHealth: () => import("./books/childHealth/view/index.vue"), lifeCare: () => import("./books/lifeCare/view/index.vue"), embedded: () => import("./books/embedded/view/index.vue"), - english: () => import("./books/English/view/index.vue"), + english: () => import("./books/english/view/index.vue"), 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 { @@ -33,13 +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) { @@ -63,11 +61,18 @@ // artAndDance // 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 + // : "artAndDrama") + // ); this.activeBook = await this.config.getBookConfig( - process.env.VUE_APP_RESOURCE_CTX + + 'http://182.92.203.7:3007/books/resource/'+ (process.env.VUE_APP_ENV == "product" ? process.env.VUE_APP_BOOK_ID - : "sportsAndHealth") + : "botany") ); // 娴嬭瘯璇曡30椤� // this.activeBook.tryPageCount = 10; -- Gitblit v1.9.1