付晓文。 1 месяц назад
Родитель
Сommit
4a9496b923
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      pages/merchantDish/dish/list.vue

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

@@ -190,7 +190,7 @@ export default {
 		initParams() {
 		initParams() {
 			const params = {
 			const params = {
 				merchantId: getMerchantId(),
 				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.keyword) params.name = this.keyword;
 			if (this.filterType) params.productBelonging = belongingToApi(this.filterType);
 			if (this.filterType) params.productBelonging = belongingToApi(this.filterType);