首页 > 其他 > 详细

Computed property "selected_all" was assigned to but it has no setter,在购物车添加完去结算,然后商品列表不显示

时间:2018-07-05 18:49:45      阅读:561      评论:0      收藏:0      [点我收藏+]

这是用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,在购物车添加完去结算,然后商品列表不显示

原文:https://www.cnblogs.com/xkris/p/9269765.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!