Browse Source

收货人为空的报错问题

hu hao 4 năm trước cách đây
mục cha
commit
f9dacc1aea

+ 1 - 1
resources/views/order/index/delivering.blade.php

@@ -387,7 +387,7 @@
             methods:{
             methods:{
                 initData(){
                 initData(){
                     this.orders.forEach((order)=>{
                     this.orders.forEach((order)=>{
-                        if (order.c_contact.length>50 && order.c_contact.substring(0,3)==='~Ag')order.is_encryption = true;
+                        if (order.c_contact && order.c_contact.length>50 && order.c_contact.substring(0,3)==='~Ag')order.is_encryption = true;
                     });
                     });
                 },
                 },
                 getQueryVariable(variable){
                 getQueryVariable(variable){