Skip to content

Commit

Permalink
fix: add missed namespace, since umi-pro extension ask for them
Browse files Browse the repository at this point in the history
  • Loading branch information
leftstick committed Jun 9, 2019
1 parent 03b9573 commit 719455d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions generators/app/templates/src/models/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import { withMixin } from '../helpers/dva'

export default withMixin({
namespace: 'app',
state: {
locationPathname: '',
locationQuery: {}
Expand Down Expand Up @@ -30,6 +31,7 @@ import { redirectTo } from '../helpers/view'
import { clearAll } from '../helpers/storage'

export default withMixin({
namespace: 'app',
state: {
locationPathname: '',
locationQuery: {},
Expand Down
1 change: 1 addition & 0 deletions generators/app/templates/src/models/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { getCurrentUser } from '../services/user'
import { clearAll, getToken } from '../helpers/storage'

export default withMixin({
namespace: 'users',
state: {
currentUser: null
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "generator-umi",
"version": "2.5.3",
"version": "2.5.4",
"description": "umi project generator",
"files": [
"generators"
Expand Down

0 comments on commit 719455d

Please sign in to comment.