Error: Computed property “menuList” was assigned to but it has no setter.

Here is a simple method on how to solve error: Computed property “menuList” was assigned to but it has no setter.

1
2
3
4
5
6
7
8
9
10
11
12
// How to Solve
computed: {
  heandletState: {
    get() {
      return this.$store.getters.heandletState;
    },
    // Write it out not to achieve
    set(val) {
      console.log("vid", val);
    }
  }
},

Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *