lxr 2 месяцев назад
Родитель
Сommit
5b7f3dce71

+ 3 - 3
src/views/storeDecoration/facilitiesAndServices/components/FacilityManagement.vue

@@ -303,9 +303,9 @@ const editItem = async (item: Facility) => {
       formData.facilityCategory = detail.facilityCategory || 1;
       formData.facilityName = detail.facilityName || "";
       // 新API中没有这些字段,设置为默认值
-      formData.quantity = undefined;
-      formData.brand = "";
-      formData.description = "";
+      formData.quantity = detail.quantity || 0;
+      formData.brand = detail.brand || "";
+      formData.description = detail.description || "";
       formData.displayInStoreDetail = detail.displayInStoreDetail !== undefined ? detail.displayInStoreDetail : 1;
       dialogVisible.value = true;
     } else {