Commit d43ab80679a686c4b6eda3faf00d4ff14460e384

Authored by liufangjia
1 parent 4f72e6da

feat: 代码提交

src/views/basic/askTestQuestion/components/wrongQuestionDialog.vue
@@ -298,6 +298,8 @@ export default { @@ -298,6 +298,8 @@ export default {
298 // 如果都没有直接return 执行初始化 298 // 如果都没有直接return 执行初始化
299 if (this.groups.length == 0) { 299 if (this.groups.length == 0) {
300 this.init(); 300 this.init();
  301 + localStorage.setItem("testData", JSON.stringify(this.list));
  302 + this.uniqueById(this.groups);
301 return; 303 return;
302 } 304 }
303 // 如果一致 就直接赋值 305 // 如果一致 就直接赋值
@@ -308,6 +310,8 @@ export default { @@ -308,6 +310,8 @@ export default {
308 return; 310 return;
309 } else { 311 } else {
310 let data = this.findMissingIds(this.testData, this.list); 312 let data = this.findMissingIds(this.testData, this.list);
  313 + this.testData = this.list;
  314 + localStorage.setItem("testData", JSON.stringify(this.testData));
311 this.testAddDel(this.groups, data.addArr, data.delArr); 315 this.testAddDel(this.groups, data.addArr, data.delArr);
312 } 316 }
313 } else { 317 } else {