Commit 86c07c78 authored by 张子雨's avatar 张子雨

feat: 代码优化

parent 5c7a5a6f
...@@ -54,7 +54,7 @@ export const columns = props => [ ...@@ -54,7 +54,7 @@ export const columns = props => [
const isArray = Array.isArray(row?.mealType); const isArray = Array.isArray(row?.mealType);
if (isArray) { if (isArray) {
return ( return (
<Button type="text" disabled={status} onClick={() => props.editRepastType(row)}> <Button type="link" disabled={status} onClick={() => props.editRepastType(row)}>
{repastType(row?.mealType)} {repastType(row?.mealType)}
<FormOutlined /> <FormOutlined />
</Button> </Button>
...@@ -99,7 +99,7 @@ export const columns = props => [ ...@@ -99,7 +99,7 @@ export const columns = props => [
align: 'center', align: 'center',
key: 'option', key: 'option',
render: (_, row) => ( render: (_, row) => (
<Button type="link" disabled={row?.pickselfName?.length} onClick={() => props.delShop(row)}> <Button type="link" disabled={row?.pickNameList?.length} onClick={() => props.delShop(row)}>
删除 删除
</Button> </Button>
), ),
......
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