Commit 79a2a06d authored by GuanHua's avatar GuanHua

fix: 装修问题修复

parent 5f81110f
......@@ -49,11 +49,11 @@ const ChannelInfo: React.FC<ShopInfoPropsType> = (props) => {
const PDFList = ['application/pdf']
const isPDF = PDFList.includes(file.type)
if (!isLt50M) {
setFileLoading(true);
setFileLoading(false);
message.error('上传文件大小不超过 50M!');
}
if (!isPDF) {
setFileLoading(true);
setFileLoading(false);
message.error('请上传pdf格式文件');
}
return isLt50M && isPDF;
......
......@@ -192,6 +192,7 @@ const AdvertSetting: React.FC<AdvertSettingPropsType> = forwardRef((props, ref)
const handleConfirmSave = useCallback((e: any) => {
e.preventDefault();
if (JSON.stringify(props) === JSON.stringify(newProps)) {
clearSelectedStatus()
return
}
setConfirmLoading(true)
......
......@@ -105,6 +105,7 @@ const BrandSetting: React.FC<ShopSettingPropsType> = (props) => {
const handleConfirmSave = () => {
if (JSON.stringify(brandList) === JSON.stringify(selectBrandList)) {
clearSelectedStatus()
return
}
// if (selectBrandList.length <= 0) {
......
......@@ -79,6 +79,7 @@ const CategoryRecommendSetting: React.FC<CategoryRecommendSettingPropsType> = (p
const handleConfirmSave = useCallback((e: any) => {
e.preventDefault();
if (JSON.stringify(props) === JSON.stringify(newProps)) {
clearSelectedStatus()
return
}
......
......@@ -190,8 +190,8 @@ const GoodsSetting: React.FC<GoodsSettingPropsType> = (props) => {
}
const handleConfirmSave = () => {
console.log('handleConfirmSave1')
if (JSON.stringify(goodsList) === JSON.stringify(selectGoodsList)) {
clearSelectedStatus()
return
}
// console.log('handleConfirmSave2')
......
......@@ -106,6 +106,7 @@ const ShopSetting: React.FC<ShopSettingPropsType> = (props) => {
const handleConfirmSave = () => {
if (JSON.stringify(shopsList) === JSON.stringify(selectShopsList)) {
clearSelectedStatus()
return
}
......
......@@ -49,11 +49,11 @@ const ShopInfo: React.FC<ShopInfoPropsType> = (props) => {
const PDFList = ['application/pdf']
const isPDF = PDFList.includes(file.type)
if (!isLt50M) {
setFileLoading(true);
setFileLoading(false);
message.error('上传文件大小不超过 50M!');
}
if (!isPDF) {
setFileLoading(true);
setFileLoading(false);
message.error('请上传pdf格式文件');
}
return isLt50M && isPDF;
......
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