Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
前端-吴智勇
jinfa-platform
Commits
15fc85e1
Commit
15fc85e1
authored
Jun 23, 2022
by
钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 处理直接访问链接不跳转到首页的问题
parent
03b59051
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
defaultHomePath.ts
src/utils/defaultHomePath.ts
+1
-1
No files found.
src/utils/defaultHomePath.ts
View file @
15fc85e1
...
...
@@ -7,7 +7,7 @@ import { getAuth } from "./auth";
*/
const
defaultHomePath
=
(
auth
?):
string
=>
{
const
userAuth
=
auth
||
getAuth
();
if
(
userAuth
.
urls
.
includes
(
SRM_PURCHASER_HOME_PATH
))
{
if
(
userAuth
?.
urls
&&
userAuth
.
urls
.
includes
(
SRM_PURCHASER_HOME_PATH
))
{
return
SRM_PURCHASER_HOME_PATH
;
}
return
HOME_PATH
;
...
...
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