generated from duanshuwen/webapp-vue-frontend
feat: 调整路由跳转方式
This commit is contained in:
@@ -49,8 +49,6 @@
|
||||
import { getSurveyQuestionnaireUsingGet, submitSurveyQuestionnaireAnswerUsingPost } from '@api'
|
||||
import { showToast } from 'vant';
|
||||
|
||||
|
||||
|
||||
const form = ref({
|
||||
surveyId: '',
|
||||
answers: []
|
||||
@@ -99,7 +97,7 @@ const onSubmit = async () => {
|
||||
form.value.surveyId = ''
|
||||
form.value.answers = []
|
||||
|
||||
router.push({ name: 'result' })
|
||||
router.replace({ name: 'result' })
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user