From ade4acfef3f7f809a63a0bc25a842beb73973809 Mon Sep 17 00:00:00 2001 From: YM <479443481@qq.com> Date: 星期三, 15 五月 2024 17:41:17 +0800 Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/testbookLayout --- src/books/childHealth/view/content/components/chapter003.vue | 2 +- vue.config.js | 4 ++-- src/books/childHealth/view/content/components/chapter0004.vue | 1 + src/books/childHealth/view/content/components/chapter005.vue | 1 - src/assets/methods/examination.js | 3 +-- src/books/childHealth/view/content/components/chapter011.vue | 2 +- src/books/childHealth/view/content/components/chapter002.vue | 1 + src/books/childHealth/view/content/components/chapter001.vue | 1 + 8 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/assets/methods/examination.js b/src/assets/methods/examination.js index e53db2b..3827dc9 100644 --- a/src/assets/methods/examination.js +++ b/src/assets/methods/examination.js @@ -200,12 +200,11 @@ questionArr.push(citem); } } - console.log(cardList); return cardList }; const getQuestionData = (chapterData) => { - const data = chapterData + const data = {...chapterData} for(let key in chapterData) { data[key] = getQuestionList(chapterData[key]) } diff --git a/src/books/childHealth/view/content/components/chapter0004.vue b/src/books/childHealth/view/content/components/chapter0004.vue index e1cabf4..7773bca 100644 --- a/src/books/childHealth/view/content/components/chapter0004.vue +++ b/src/books/childHealth/view/content/components/chapter0004.vue @@ -1207,6 +1207,7 @@ }; }, mounted() { + console.log('鏁版嵁',testData[4]); this.$data.questionData = getQuestionData(testData[4]) this.$data.pathOne = getResourcePath('f2980359eb32cb3b74b284bf5348a596') this.$data.pathTwo = getResourcePath('2677fc38748eeac767a4b3fab5989a38') diff --git a/src/books/childHealth/view/content/components/chapter001.vue b/src/books/childHealth/view/content/components/chapter001.vue index 3a2c5da..4dffff5 100644 --- a/src/books/childHealth/view/content/components/chapter001.vue +++ b/src/books/childHealth/view/content/components/chapter001.vue @@ -3428,6 +3428,7 @@ }; }, mounted() { + console.log('鏁版嵁',testData[1]); this.$data.questionData = getQuestionData(testData[1]) this.$data.pathOne = getResourcePath('f6f6588a75086576b87bed2fb9ca1ec1') this.$data.pathTwo = getResourcePath('e5993b62684fe55d13190cfe52bf00ed') diff --git a/src/books/childHealth/view/content/components/chapter002.vue b/src/books/childHealth/view/content/components/chapter002.vue index ca66240..92c76e6 100644 --- a/src/books/childHealth/view/content/components/chapter002.vue +++ b/src/books/childHealth/view/content/components/chapter002.vue @@ -1030,6 +1030,7 @@ }; }, mounted() { + console.log('鏁版嵁',testData[2]); this.$data.questionData = getQuestionData(testData[2]) this.$data.pathOne = getResourcePath('e2b2b610e8b77c82bad7cf94c7986646') this.$data.pathTwo = getResourcePath('b11b51863da2a4e7e21c73358fa96c1e') diff --git a/src/books/childHealth/view/content/components/chapter003.vue b/src/books/childHealth/view/content/components/chapter003.vue index eb58667..e3989b7 100644 --- a/src/books/childHealth/view/content/components/chapter003.vue +++ b/src/books/childHealth/view/content/components/chapter003.vue @@ -1528,8 +1528,8 @@ }; }, mounted() { + console.log('鏁版嵁',testData[3]); this.$data.questionData = getQuestionData(testData[3]) - this.$data.questionData = getQuestionData(testData[1]) this.$data.pathOne = getResourcePath('ca2a1ae9429a5f7a28fe9aa1bfbf3b4a') this.$data.pathTwo = getResourcePath('8fa9d6565b97c5975b1a0a7ef09d38a9') this.$data.pathThree = getResourcePath('56170fb1a0ea272990fe51530086aab1') diff --git a/src/books/childHealth/view/content/components/chapter005.vue b/src/books/childHealth/view/content/components/chapter005.vue index 1330a95..8dfa20e 100644 --- a/src/books/childHealth/view/content/components/chapter005.vue +++ b/src/books/childHealth/view/content/components/chapter005.vue @@ -2219,7 +2219,6 @@ }, mounted() { this.$data.questionData = getQuestionData(testData[5]) - this.$data.questionData = getQuestionData(testData[4]) this.$data.pathOne = getResourcePath('5698398be3f5c7fdb247218b2a687257') this.$data.pathTwo = getResourcePath('5905673b09837c74953dd11fcb27d123') this.$data.pathThree = getResourcePath('1f768157227c193ed5c11f972f66e692') diff --git a/src/books/childHealth/view/content/components/chapter011.vue b/src/books/childHealth/view/content/components/chapter011.vue index 2e03ae8..30b88b8 100644 --- a/src/books/childHealth/view/content/components/chapter011.vue +++ b/src/books/childHealth/view/content/components/chapter011.vue @@ -89,7 +89,7 @@ }; }, mounted() { - this.$data.questionData = getQuestionData(testData[10]) + this.$data.questionData = getQuestionData(testData[11]) }, }; </script> diff --git a/vue.config.js b/vue.config.js index e848709..32812c0 100644 --- a/vue.config.js +++ b/vue.config.js @@ -2,8 +2,8 @@ // import {publicCtx} from '@/assets/js/config' const { defineConfig } = require("@vue/cli-service"); module.exports = defineConfig({ - // publicPath: 'http://182.92.203.7:3007/books/book/1', - publicPath:'/books/book/1', + publicPath: 'http://182.92.203.7:3007/books/book/1', + // publicPath:'/books/book/1', transpileDependencies: true, lintOnSave: false, // devServer: { -- Gitblit v1.9.1