Commit a1240ee5 authored by 靳野's avatar 靳野

fix:修复保存与blur的冲突问题

parent 98480759
......@@ -31,6 +31,7 @@ import { ServiceContext } from './context';
import { GOOD_MANAGE } from '@/../config/permission.config';
import styles from './common.less';
import { GoldCategory } from '@/config/app.config';
import { debounce } from '@/utils/utils';
/**
* 服务商品改造-商品模块
......@@ -454,7 +455,7 @@ const ServiceGoods = options => {
};
// 保存草稿
const onSaveDraft = async () => {
const onSaveDraft = debounce(async () => {
const info = localStorage.get(localAutoSaveKey);
if (
!info ||
......@@ -506,7 +507,7 @@ const ServiceGoods = options => {
handleCancel(true);
},
});
};
}, 400);
const isPopGoods = location.pathname.indexOf('popGoodsManage') > 0; // pop商品管理-商品库(应付审计用的, 驳回和修改状态下不能编辑)
const providerValue = {
pageId,
......
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