query-string

This commit is contained in:
杨斌
2017-09-08 13:27:07 +08:00
parent 7bf031699a
commit d3e7e17789
5 changed files with 11 additions and 3 deletions
+2 -1
View File
@@ -7,6 +7,7 @@ import config from 'config'
import { EnumRoleType } from 'enums'
import { query, logout } from 'services/app'
import * as menusService from 'services/menus'
import queryString from 'query-string'
const { prefix } = config
@@ -41,7 +42,7 @@ export default {
type: 'updateState',
payload: {
locationPathname: location.pathname,
locationQuery: location.query,
locationQuery: queryString.parse(location.search),
},
})
})