Commit f4688db1 authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix: 商品名称重复提交按钮异常

parent 5d08a772
......@@ -292,8 +292,9 @@ const AddProducts: React.FC<{}> = (props) => {
PublicApi.postProductCommoditySaveOrUpdateCommodity(_params).then(res => {
if (res.code === 1000) {
setIsEnableCheck(false)
// setIsDisableSaveBtn(false)
setReponseId(res.data)
} else {
setIsDisableSaveBtn(false)
}
})
}).then(e => {
......
......@@ -7,16 +7,14 @@ import {
MinusOutlined,
} from '@ant-design/icons'
import { PublicApi } from '@/services/api';
import {
GetProductCustomerGetCustomerCategoryTreeResponse,
GetManageAreaAllResponse
} from '@/services';
import { inject, observer } from 'mobx-react'
// import { IProductModule } from '@/module/productModule'
// import { IStore } from '@/store';
import { store } from '@/store'
import { validatorByte } from '@/utils/regExp';
import { GetProductCustomerGetCustomerCategoryTreeResponse } from '@/services/ProductApi';
import { GetManageAreaAllResponse } from '@/services/PassApi';
const { Option } = Select
const layout = {
......@@ -66,7 +64,7 @@ const BasicInfoForm: React.FC<Iprops> = (props) => {
productInfoByEdit,
getBasicFormParamsByEdit,
setAttributeLists,
setProductName,
setProductName,
setSelectCategoryId,
setSelectBrandId,
} = ProductStore
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment