Commit a4d954bf by 肖康

x

parent 42e96458
Showing with 4 additions and 2 deletions
...@@ -26,13 +26,15 @@ const actions = { ...@@ -26,13 +26,15 @@ const actions = {
Services.shipping(qs.stringify(params)).then((res) => { Services.shipping(qs.stringify(params)).then((res) => {
state.loading = false; state.loading = false;
if (res.data.err_code == 0) { if (res.data.err_code == 0) {
let arr_=res.data.data||[] let arr_=res.data.data||[];
state.wlInfoAll=res.data.data;
if(!payload.order_shipping_id){return}
arr_.forEach((item)=>{ arr_.forEach((item)=>{
if(item.order_shipping_id==payload.order_shipping_id){ if(item.order_shipping_id==payload.order_shipping_id){
state.wlInfo=item state.wlInfo=item
} }
}) })
state.wlInfoAll=res.data.data
}else{ }else{
Toast(res.data.err_msg) Toast(res.data.err_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 sign in to comment