소스 검색

修改支付判断

lex 1 년 전
부모
커밋
889e4322b6
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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 {