Explorar el Código

bugfix:修复不含早情况下早餐数量显示错误的问题

LiChengjin hace 2 meses
padre
commit
df31839564
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      subpkg/orderDetail/orderDetail.vue

+ 1 - 1
subpkg/orderDetail/orderDetail.vue

@@ -128,7 +128,7 @@
 					.paymentTime).format('YYYY-MM-DD HH:mm:ss')
 				this.orderInfo.status = this.status[this.orderInfo.status]
 				this.orderInfo.paymentStatus = this.paymentStatus[this.orderInfo.paymentStatus]
-				if (this.orderInfo.breakfastNum === 0) {
+				if (this.orderInfo.breakfastNum === null) {
 					this.orderInfo.breakfastNum = '不含早'
 				} else {
 					this.orderInfo.breakfastNum = `含${this.orderInfo.breakfastNum}早`