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

feat: 代码优化

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