Parcourir la source

fix decodeURI

ChengYuXuan il y a 5 ans
Parent
commit
752ab1b2e9
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1 2
      src/views/exam/ExamPane.vue

+ 1 - 2
src/views/exam/ExamPane.vue

@@ -275,7 +275,6 @@ export default Vue.extend({
       examNotAvailable: false,
       submitting: false,
       finished: false,
-      answered: false,
       examTimesUp: false,
       codeQuestionIds: [] as ID[],
       codeQuestionStartIndex: 0,
@@ -337,7 +336,7 @@ export default Vue.extend({
       this.exitDialog = false
       let redirect_uri = this.$route.query.redirect_uri ?? ''
       if (redirect_uri) {
-        window.location.href = decodeURI(redirect_uri as string)
+        window.location.href = decodeURIComponent(redirect_uri as string)
       } else {
         this.$router.push({ name: 'Home' })
       }