From b4eb53d0f04c39abb07885c153fd2164f60ff1ed Mon Sep 17 00:00:00 2001 From: zhongshujie <2862698242@qq.com> Date: 星期三, 23 十月 2024 14:52:37 +0800 Subject: [PATCH] bug修改 --- src/App.vue | 13 ++++++------- 1 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/App.vue b/src/App.vue index c598bd8..980e04b 100644 --- a/src/App.vue +++ b/src/App.vue @@ -9,6 +9,7 @@ <artAndDrama v-if="activeBook.name == 'artAndDrama'"></artAndDrama> <mathBook v-if="activeBook.name == 'mathBook'"></mathBook> <botany v-if="activeBook.name == 'botany'"></botany> + <civilAviation v-if="activeBook.name == 'civilAviation'"></civilAviation> </div> </template> @@ -24,7 +25,8 @@ artAndDance: () => import("./books/artAndDance/view/index.vue"), mathBook: () => import("./books/mathBook/view/index.vue"), artAndDrama: () => import("./books/artAndDrama/view/index.vue"), - botany: () => import("./books/botany/view/index.vue") + botany: () => import("./books/botany/view/index.vue"), + civilAviation: () => import("./books/civilAviation/view/index.vue") }, data() { return { @@ -34,12 +36,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,13 +63,14 @@ // artAndDance // artAndDrama // mathBook - + // civilAviation 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") + : "civilAviation") ); + // this.activeBook = await this.config.getBookConfig( // 'http://182.92.203.7:3007/books/resource/'+ // (process.env.VUE_APP_ENV == "product" @@ -83,11 +84,9 @@ } }, methods: { - but() { console.log(this.activeBook, 'this.activeBook789'); } - } }; -- Gitblit v1.9.1