|
|
@@ -57,9 +57,12 @@ export default function HomePage() {
|
|
|
}
|
|
|
if (history.location.query?.id_token) {
|
|
|
setCookie('token', history.location.query?.id_token as string)
|
|
|
+ if (history.location.query?.examId && history.location.query?.questionId) {
|
|
|
+ getQuestion(history.location.query?.examId as string, history.location.query?.questionId as string)
|
|
|
+ }
|
|
|
history.push('/')
|
|
|
}
|
|
|
- if (history.location.query?.examId && history.location.query?.questionId) {
|
|
|
+ else if (history.location.query?.examId && history.location.query?.questionId) {
|
|
|
getQuestion(history.location.query?.examId as string, history.location.query?.questionId as string)
|
|
|
history.push('/')
|
|
|
}
|
|
|
@@ -69,6 +72,9 @@ export default function HomePage() {
|
|
|
}
|
|
|
if (history.location.query?.id_token) {
|
|
|
setCookie('token', history.location.query?.id_token as string)
|
|
|
+ if (history.location.query?.examId && history.location.query?.questionId) {
|
|
|
+ getQuestion(history.location.query?.examId as string, history.location.query?.questionId as string)
|
|
|
+ }
|
|
|
history.push('/')
|
|
|
}
|
|
|
});
|