mirror of
https://github.com/zuiidea/antd-admin.git
synced 2024-04-21 12:32:14 +00:00
Merge pull request #989 from tuantvk/master
🐛 fix remove and update user error handleRefresh
This commit is contained in:
+2
-2
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "antd-admin",
|
||||
"version": "5.0.6",
|
||||
"private": true,
|
||||
"version": "5.1.1",
|
||||
"license": "MIT",
|
||||
"description": "An admin dashboard application demo built upon Ant Design and UmiJS",
|
||||
"dependencies": {
|
||||
"@lingui/react": "^2.8.0",
|
||||
|
||||
@@ -56,7 +56,7 @@ class User extends PureComponent {
|
||||
modalType === 'create' ? i18n.t`Create User` : i18n.t`Update User`
|
||||
}`,
|
||||
centered: true,
|
||||
onOk(data) {
|
||||
onOk: data => {
|
||||
dispatch({
|
||||
type: `user/${modalType}`,
|
||||
payload: data,
|
||||
@@ -81,7 +81,7 @@ class User extends PureComponent {
|
||||
pageSize: page.pageSize,
|
||||
})
|
||||
},
|
||||
onDeleteItem(id) {
|
||||
onDeleteItem: id => {
|
||||
dispatch({
|
||||
type: 'user/delete',
|
||||
payload: id,
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
module.exports = {
|
||||
siteName: 'AntD Admin',
|
||||
copyright: 'Ant Design Admin © 2018 zuiidea',
|
||||
copyright: 'Ant Design Admin ©2019 zuiidea',
|
||||
logoPath: '/logo.svg',
|
||||
apiPrefix: '/api/v1',
|
||||
fixedHeader: true, // sticky primary layout header
|
||||
|
||||
Reference in New Issue
Block a user