Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
fe5b0a3c
Commit
fe5b0a3c
authored
Jun 28, 2019
by
duanledexianxianxian
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sync code
parent
62dd228b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletion
+6
-1
src/config.js
src/config.js
+1
-0
src/pages/Authorized.tsx
src/pages/Authorized.tsx
+1
-0
src/pages/user/login/models/index.js
src/pages/user/login/models/index.js
+4
-1
No files found.
src/config.js
View file @
fe5b0a3c
...
...
@@ -12,4 +12,5 @@ export default {
successCode
:
'
sys.success
'
,
// 后台正常返回错误编码
isThrowError
:
true
,
// 默认为true
copyright
:
`
${
new
Date
().
getFullYear
()}
KIM3.0技术中台部出品`
,
homePage
:
'
/dashboard/analysis
'
,
};
src/pages/Authorized.tsx
View file @
fe5b0a3c
...
...
@@ -25,6 +25,7 @@ const getRouteAuthority = (path: string, routeData: Route[]) => {
}
}
});
console
.
log
(
'
authorities:
'
,
authorities
);
return
authorities
;
};
...
...
src/pages/user/login/models/index.js
View file @
fe5b0a3c
import
{
routerRedux
}
from
'
dva/router
'
;
import
{
login
}
from
'
../services
'
;
import
store
from
'
@/utils/store
'
;
import
{
routerRedux
}
from
'
dva/router
'
;
import
{
getPageQuery
}
from
'
@/utils
'
;
import
config
from
'
@/config
'
;
const
initData
=
{};
export
default
{
...
...
@@ -33,6 +34,8 @@ export default {
window
.
location
.
href
=
redirect
;
return
;
}
}
else
{
redirect
=
config
.
homePage
;
}
yield
put
(
routerRedux
.
replace
(
redirect
||
'
/
'
));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment