From 65af806e194ec55b91a6352db1e7d9c489e74b1a Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Tue, 3 Sep 2024 15:36:46 +0800 Subject: [PATCH] fix --- src/pages/ques/detail/index.vue | 1 - src/pages/ques/list/index.vue | 1 - src/pages/quesBank/index.vue | 2 +- src/pages/testPaper/detail/auto.vue | 11 +++++------ src/pages/testPaper/preview/index.vue | 1 - src/router/permission.js | 5 ++--- 6 files changed, 8 insertions(+), 13 deletions(-) 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) +})