Commit d43ab80679a686c4b6eda3faf00d4ff14460e384

Authored by liufangjia
1 parent 4f72e6da

feat: 代码提交

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