Explorar el Código

Update list.vue

付晓文。 hace 1 mes
padre
commit
4a9496b923
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      pages/merchantDish/dish/list.vue

+ 1 - 1
pages/merchantDish/dish/list.vue

@@ -190,7 +190,7 @@ export default {
 		initParams() {
 			const params = {
 				merchantId: getMerchantId(),
-				statusType: STATUS_KEY_TO_TYPE[this.filterStatus] != null ? STATUS_KEY_TO_TYPE[this.filterStatus] : ''
+				statusType: this.filterStatus ? STATUS_KEY_TO_TYPE[this.filterStatus] : ''
 			};
 			if (this.keyword) params.name = this.keyword;
 			if (this.filterType) params.productBelonging = belongingToApi(this.filterType);