Commit 3924803e3bd2ab6a70723335b021e9e5e29bf26d
1 parent
4fafa200
fix: DEFECT-1551 将产品设置为默认,随后点击删除,报错,如果产品设置为默认在卡片模式下应该不显示删除按钮和列表模式一样
Showing
1 changed file
with
2 additions
and
0 deletions
... | ... | @@ -273,6 +273,7 @@ |
273 | 273 | event: DropMenuEvent.SET_DEFAULT, |
274 | 274 | icon: 'ant-design:unordered-list-outlined', |
275 | 275 | onClick: handleSetDefault.bind(null, item), |
276 | + disabled: item.default, | |
276 | 277 | }, |
277 | 278 | { |
278 | 279 | text: '删除', |
... | ... | @@ -283,6 +284,7 @@ |
283 | 284 | title: '是否确认删除操作?', |
284 | 285 | onConfirm: handleDelete.bind(null, [item.id]), |
285 | 286 | }, |
287 | + disabled: item.default, | |
286 | 288 | }, |
287 | 289 | ]" |
288 | 290 | /> | ... | ... |