Computed property "selected_all" was assigned to but it has no setter,在购物车添加完去结算,然后商品列表不显示
Posted xkris
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Computed property "selected_all" was assigned to but it has no setter,在购物车添加完去结算,然后商品列表不显示相关的知识,希望对你有一定的参考价值。
这是用python 写一个商城项目 报的错,原因是全选vue报的错
on_selected_all: function(){ var selected = !this.selected_all; axios.put(this.host + ‘/cart/selection/‘, { selected }, { responseType: ‘json‘, headers:{ ‘Authorization‘: ‘JWT ‘ + this.token }, withCredentials: true }) .then(response => { for (var i=0; i<this.cart.length;i++){ this.cart[i].selected = selected; } }) .catch(error => { console.log(error.response.data); }) },
以上是关于Computed property "selected_all" was assigned to but it has no setter,在购物车添加完去结算,然后商品列表不显示的主要内容,如果未能解决你的问题,请参考以下文章
VueJS Toggle Prop Boolean Value Vis-a-vis a Computed Property
我想在jsp页面中用js获取s:property中的value要怎么办?
vue.js:634 [Vue warn]: The computed property “total“ is already defined in data. (found in <Root>)