|
@@ -22,7 +22,7 @@ export default {
|
|
|
},
|
|
|
computed: {
|
|
|
questionId() {
|
|
|
- return this.$route.query?.id || this.$route.query?.questionId || 0
|
|
|
+ return this.$route.query.id || this.$route.query.questionId || 0
|
|
|
},
|
|
|
questionOptions() {
|
|
|
return {
|
|
@@ -40,7 +40,7 @@ export default {
|
|
|
methods: {
|
|
|
loadQuestion() {
|
|
|
if (this.questionId) {
|
|
|
- getNextQuestionForImageGenerate(this.questionId)
|
|
|
+ getNextQuestionForImageGenerate(this.$route.query)
|
|
|
.then(res => this.question = res.data)
|
|
|
}
|
|
|
}
|