Просмотр исходного кода

:construction: Set up for redirect after finish of survey

tags/0.0.3^2
tomit4 3 лет назад
Родитель
Сommit
0c130f57d0
2 измененных файлов: 3 добавлений и 2 удалений
  1. 2
    1
      frontend/src/components/onboarding/FormInput.vue
  2. 1
    1
      frontend/src/views/OnboardingView.vue

+ 2
- 1
frontend/src/components/onboarding/FormInput.vue Просмотреть файл

54
 </script>
54
 </script>
55
 
55
 
56
 <style>
56
 <style>
57
-h3 {
57
+h3,
58
+input[placeholder] {
58
     text-align: center;
59
     text-align: center;
59
 }
60
 }
60
 input {
61
 input {

+ 1
- 1
frontend/src/views/OnboardingView.vue Просмотреть файл

53
     methods: {
53
     methods: {
54
         onSubmit() {
54
         onSubmit() {
55
             console.log(JSON.stringify(this.answered))
55
             console.log(JSON.stringify(this.answered))
56
-            this.survey = null
56
+            this.$router.push({ name: 'SurveyView' })
57
         },
57
         },
58
         goToStep(num) {
58
         goToStep(num) {
59
             this.currentStep = num
59
             this.currentStep = num

Загрузка…
Отмена
Сохранить