1
This commit is contained in:
@@ -11,6 +11,8 @@ import { PlusOutlined } from '@ant-design/icons';
|
||||
|
||||
const GoodsTableList: React.FC = () => {
|
||||
const actionRef = useRef<ActionType>();
|
||||
const access = useAccess()
|
||||
|
||||
|
||||
const columns = [
|
||||
{
|
||||
@@ -93,6 +95,7 @@ const GoodsTableList: React.FC = () => {
|
||||
<Button
|
||||
type="link"
|
||||
size="small"
|
||||
hidden={!access.hasPerms('/api/goods/update')}
|
||||
onClick={() => {
|
||||
history.push(`goods/${record.id}/update`);
|
||||
}}
|
||||
@@ -142,6 +145,7 @@ const GoodsTableList: React.FC = () => {
|
||||
<Button
|
||||
type="primary"
|
||||
key="add"
|
||||
hidden={!access.hasPerms('/api/goods/add')}
|
||||
onClick={async () => {
|
||||
history.push('goods/0/create');
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user