Computed property "isLoading" was assigned to but it has no setter.

vue.esm.js?65d7:476 [Vue warn]: Computed property "isLoading" was assigned to but it has no setter.


found in


---> at E:\webstorm\lottery-customer\src\App.vue
       

我遇到的情况是在状态管理出现的


<v-loading v-model="isLoading" loading=false class="loading">v-loading>

computed: {
  ...mapState({
    isLoading: state => state.com.isLoading
  }),

}


将之修改为


<v-loading v-model="isLoading.isLoading" loading=false class="loading">v-loading>

computed: {
  ...mapState({
    isLoading: state => state.com
  }),

}

这样问题就解决了

你可能感兴趣的:(Computed property "isLoading" was assigned to but it has no setter.)