Browse Source

修改支付判断

lex 1 year ago
parent
commit
889e4322b6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/order-detail/index.tsx

+ 2 - 2
src/views/order-detail/index.tsx

@@ -240,8 +240,8 @@ export default defineComponent({
 
           // 判断是否为原生支付
           if (
-            this.orderInfo.paymentVendor.indexOf('wxpay') > -1 ||
-            this.orderInfo.paymentVendor.indexOf('alipay') > -1
+            this.orderInfo.paymentVendor?.indexOf('wxpay') > -1 ||
+            this.orderInfo.paymentVendor?.indexOf('alipay') > -1
           ) {
             this.paymentStatus = true
           } else {