How to realize the data judgment of three states in vue?

I got a piece of data from the background, which is an array object in the following format:

{{item.state}}</div>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      info: this.$store.state.IndexStore.Progress.cardSchedule //
    }
  }
  computed: {
    formatInfo () {
      this.info.map((current, index) => {
        switch (current.state) {
          case "0": current.state = ""
            break
          case "1": current.state = ""
            break
          case "2": current.state = ""
            break
        }
      })
    }
  },
}
</script>

I can"t get the effect I want when I write this, and I can only render 1 or 0 or 2-sharp-sharp-sharp problem description if I can"t see the status of"in process".

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

Mar.29,2021

   

Menu