panhui 5 роки тому
батько
коміт
b533728408
1 змінених файлів з 1 додано та 11 видалено
  1. 1 11
      screens/HomeScreenPage3.js

+ 1 - 11
screens/HomeScreenPage3.js

@@ -329,19 +329,9 @@ export default function HomePage3() {
         defaultValue={categoryList}
         submit={selectVal => {
           const info = { ...selectVal[selectVal.length - 1] };
-          delete info.pId;
-          delete info.choose;
-          delete info.active;
-          console.log(info);
           loading();
           updateMerchant({
-            category: {
-              active: true,
-              children: [],
-              id: 139,
-              name: "水果生榨",
-              parent: 23,
-            },
+            categoryId: info.id,
           }).then(() => {
             success("成功");
           });