lrf402788946 пре 4 година
родитељ
комит
ecccb89b17
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/views/twoweb/service/question/detail.vue

+ 2 - 2
src/views/twoweb/service/question/detail.vue

@@ -94,10 +94,10 @@ export default {
       }
       }
     },
     },
     async init() {
     async init() {
-      console.log('in function:');
       const { questions } = this.data;
       const { questions } = this.data;
       if (!(_.isArray(questions) && questions.length > 0)) return;
       if (!(_.isArray(questions) && questions.length > 0)) return;
-      for (let i = 0; i < questions.length; i++) {
+      console.log('in function:');
+      for (let i = 1; i <= questions.length - 1; i++) {
         const e = questions[i];
         const e = questions[i];
         const { type } = e;
         const { type } = e;
         if (type === '1') {
         if (type === '1') {