diff --git a/src/pages/ques/detail/index.vue b/src/pages/ques/detail/index.vue index c07fa52..390abbf 100644 --- a/src/pages/ques/detail/index.vue +++ b/src/pages/ques/detail/index.vue @@ -646,7 +646,6 @@ export default { let spanRegex = new RegExp('(.*?)______(.*?)<\\/span>', 'g') let newFormItem = [] let gapfillingItems = content.match(spanRegex) - console.log("๐Ÿš€ ~ questionItemReset ~ gapfillingItems:", gapfillingItems) if (gapfillingItems !== null) { gapfillingItems.forEach(function (span, index) { let pairRegex = /(.*?)______(.*?)<\/span>/ diff --git a/src/pages/ques/list/index.vue b/src/pages/ques/list/index.vue index 787570e..5bd8a18 100644 --- a/src/pages/ques/list/index.vue +++ b/src/pages/ques/list/index.vue @@ -298,7 +298,6 @@ export default { }, mounted () { const { referrer1 } = this.$store.state.user - console.log("๐Ÿš€ ~ mounted ~ referrer1:", this.$route.query.questionTypes) this.crumbs = [ { name: this.questionBankName || '้ข˜ๅบ“็ฎก็†', diff --git a/src/pages/quesBank/index.vue b/src/pages/quesBank/index.vue index dce20a7..f42a473 100644 --- a/src/pages/quesBank/index.vue +++ b/src/pages/quesBank/index.vue @@ -184,7 +184,7 @@ export default { }) this.handleList(data) this.types = data - this.initData() + this.getList() } finally { this.loading = false } diff --git a/src/pages/testPaper/detail/auto.vue b/src/pages/testPaper/detail/auto.vue index 17b70e4..44701e1 100644 --- a/src/pages/testPaper/detail/auto.vue +++ b/src/pages/testPaper/detail/auto.vue @@ -393,7 +393,6 @@ export default { // ๅค„็†ๅคง็บฒๅˆ—่กจ handleQuesList () { this.list = _.cloneDeep(this.$parent.form.paperOutline) - console.log("๐Ÿš€ ~ handleQuesList ~ this.list:", this.list) }, // ๆธ…็ฉบๅทฒ้€‰ async clearChecked () { @@ -452,18 +451,18 @@ export default { this.$set(e, 'hardDifficulty', 0) this.$set(e, 'veryHardDifficulty', 0) } else if (val === 2) { - this.$set(e, 'basicDifficulty', Math.floor(total * 0.5)) - this.$set(e, 'normalDifficulty', Math.floor(total * 0.5)) + this.$set(e, 'basicDifficulty', Math.floor(total * 0.45)) + this.$set(e, 'normalDifficulty', Math.floor(total * 0.55)) this.$set(e, 'hardDifficulty', 0) this.$set(e, 'veryHardDifficulty', 0) } else if (val === 3) { this.$set(e, 'basicDifficulty', Math.floor(total * 0.3)) - this.$set(e, 'normalDifficulty', Math.floor(total * 0.4)) - this.$set(e, 'hardDifficulty', Math.floor(total * 0.3)) + this.$set(e, 'normalDifficulty', Math.floor(total * 0.3)) + this.$set(e, 'hardDifficulty', Math.floor(total * 0.4)) this.$set(e, 'veryHardDifficulty', 0) } else if (val === 4) { this.$set(e, 'basicDifficulty', Math.floor(total * 0.1)) - this.$set(e, 'normalDifficulty', Math.floor(total * 0.2)) + this.$set(e, 'normalDifficulty', Math.floor(total * 0.1)) this.$set(e, 'hardDifficulty', Math.floor(total * 0.3)) this.$set(e, 'veryHardDifficulty', Math.floor(total * 0.5)) } diff --git a/src/pages/testPaper/preview/index.vue b/src/pages/testPaper/preview/index.vue index 9982f5a..572a55f 100644 --- a/src/pages/testPaper/preview/index.vue +++ b/src/pages/testPaper/preview/index.vue @@ -229,7 +229,6 @@ export default { }) this.calcProgress() }) - console.log("๐Ÿš€ ~ getPaper ~ r:", r) } } catch (e) { } }, diff --git a/src/router/permission.js b/src/router/permission.js index ad6162b..c12a870 100644 --- a/src/router/permission.js +++ b/src/router/permission.js @@ -1,9 +1,8 @@ import router from './index' import Setting from '@/setting' -import util from '@/libs/util' router.beforeEach((to, from, next) => { document.title = Setting.titleSuffix next() - localStorage.setItem('examPath', router.resolve(to.fullPath).href) -}) \ No newline at end of file + to.path !== '/testPaper/preview' && localStorage.setItem('examPath', to.fullPath) +})