闫增涛
2024-05-15 616b12823f92acfae2812bb4820d0d9b325a72f5
题目请求优化
8个文件已修改
15 ■■■■ 已修改文件
src/assets/methods/examination.js 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/books/childHealth/view/content/components/chapter0004.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/books/childHealth/view/content/components/chapter001.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/books/childHealth/view/content/components/chapter002.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/books/childHealth/view/content/components/chapter003.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/books/childHealth/view/content/components/chapter005.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/books/childHealth/view/content/components/chapter011.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
vue.config.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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])
  }
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')
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')
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')
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')
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')
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>
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: {