Commit ddfbb107 authored by xieyishang's avatar xieyishang

sss

parent dfb90a14
...@@ -174,18 +174,22 @@ ...@@ -174,18 +174,22 @@
deleteGoods({ deleteGoods({
goods_id:items.goods_id, goods_id:items.goods_id,
}).then((res)=>{ }).then((res)=>{
if(res.code==0){ if(res.code==0){
this.$api.msg(res.msg); this.$api.msg(res.msg);
// this.goodsListdata.splice(index,1);//本地删除 // this.goodsListdata.splice(index,1);//本地删除
}else{
this.$api.msg(res.msg)
}
//刷新列表 //刷新列表
this.goodsListdata = []; this.goodsListdata = [];
this.page = 0; this.page = 0;
this.isshowall = true; this.isshowall = true;
this.getgoodsListfun(); this.getgoodsListfun();
}else{
this.$api.msg(res.msg)
}
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment