Skip to content

Commit

Permalink
Remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
JaneSjs committed Aug 21, 2023
1 parent 3acfc77 commit 0c32ec5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions multi-page-survey/vue3/src/components/MultipageSurvey.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<script setup lang="ts">
import 'survey-core/defaultV2.min.css';
import { Model } from 'survey-core';
import { ref } from 'vue'; // Import the ref function
import { ref } from 'vue';
const surveyJson = {
pages: [{
Expand Down Expand Up @@ -58,12 +58,10 @@ const surveyJson = {
const survey = new Model(surveyJson);
// Define additional variables
const isSurveyCompleted = ref(false);
const surveyResults = ref('');
survey.onComplete.add((sender, options) => {
// Update the variables when the survey is completed
surveyResults.value = JSON.stringify(sender.data, null, 3);
isSurveyCompleted.value = true;
});
Expand Down

0 comments on commit 0c32ec5

Please sign in to comment.