|
|
@@ -721,7 +721,7 @@ const handleSubmit = async () => {
|
|
|
storePositionLongitude: formData.storePositionLongitude,
|
|
|
storePositionLatitude: formData.storePositionLatitude,
|
|
|
businessStatus: formData.businessStatus,
|
|
|
- businessTypes: formData.businessTypes ?? "",
|
|
|
+ businessTypes: formData.businessTypes ? [formData.businessTypes] : [],
|
|
|
businessClassifyList: formData.businessClassifyList ?? []
|
|
|
};
|
|
|
|
|
|
@@ -811,7 +811,7 @@ const getStoreDetailData = async () => {
|
|
|
formData.businessSection = sectionId;
|
|
|
// 设置已选择的经营种类(单选)
|
|
|
if (storeData.businessTypes) {
|
|
|
- const typeId = String(storeData.businessTypes);
|
|
|
+ const typeId = String(storeData.businessTypes[0]);
|
|
|
formData.businessTypes = typeId;
|
|
|
// 根据经营种类获取对应的分类
|
|
|
await handleCategoryChangeByType(typeId, true);
|