@@ -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("成功");
});