From d43ab80679a686c4b6eda3faf00d4ff14460e384 Mon Sep 17 00:00:00 2001 From: liufangjia Date: Wed, 27 Nov 2024 11:24:10 +0800 Subject: [PATCH] feat: 代码提交 --- src/views/basic/askTestQuestion/components/wrongQuestionDialog.vue | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/src/views/basic/askTestQuestion/components/wrongQuestionDialog.vue b/src/views/basic/askTestQuestion/components/wrongQuestionDialog.vue index 486dda0..61fd68c 100644 --- a/src/views/basic/askTestQuestion/components/wrongQuestionDialog.vue +++ b/src/views/basic/askTestQuestion/components/wrongQuestionDialog.vue @@ -298,6 +298,8 @@ export default { // 如果都没有直接return 执行初始化 if (this.groups.length == 0) { this.init(); + localStorage.setItem("testData", JSON.stringify(this.list)); + this.uniqueById(this.groups); return; } // 如果一致 就直接赋值 @@ -308,6 +310,8 @@ export default { return; } else { let data = this.findMissingIds(this.testData, this.list); + this.testData = this.list; + localStorage.setItem("testData", JSON.stringify(this.testData)); this.testAddDel(this.groups, data.addArr, data.delArr); } } else { -- libgit2 0.21.4