|
@@ -79,7 +79,7 @@ export default defineComponent({
|
|
|
return JSON.stringify(answers.sort()) == JSON.stringify(typeof item.userAnswer === 'string' ? [item.userAnswer] : item.userAnswer.sort())
|
|
|
|
|
|
})
|
|
|
- window.localStorage.setItem(vehicle+subject,JSON.stringify(wrongSet))
|
|
|
+ window.localStorage.setItem(vehicle+subject,JSON.stringify(wrongSet||[]))
|
|
|
|
|
|
|
|
|
|
|
@@ -179,8 +179,11 @@ export default defineComponent({
|
|
|
_item.status =0
|
|
|
})
|
|
|
|
|
|
- })
|
|
|
- window.localStorage.setItem(vehicle+subject,JSON.stringify(wrongSet))
|
|
|
+ })
|
|
|
+
|
|
|
+ let localVuex = JSON.parse(window.localStorage.getItem('vuex')||'{}')
|
|
|
+ let tempUserWrongKey = localVuex.userData.openid+'_用户临时错题_'+subject
|
|
|
+ window.sessionStorage.setItem(tempUserWrongKey,JSON.stringify(wrongSet))
|
|
|
if(wrongSet.length){
|
|
|
emit('redo')
|
|
|
}
|