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
shenshaokai
jinfa-platform
Commits
a404dc59
Commit
a404dc59
authored
Aug 20, 2020
by
前端-许佳敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
94e95ce1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
app.tsx
src/app.tsx
+2
-0
register.tsx
src/pages/user/register.tsx
+1
-1
No files found.
src/app.tsx
View file @
a404dc59
...
...
@@ -97,6 +97,8 @@ export function onRouteChange({ routes, matchedRoutes, location, action }) {
const
routeAuthUrls
=
getRouters
()
// 是否登录
if
(
getAuth
())
{
console
.
log
(
location
)
console
.
log
(
matchedRoutes
)
if
(
routeAuthUrls
.
includes
(
location
.
pathname
))
{
}
else
{
...
...
src/pages/user/register.tsx
View file @
a404dc59
...
...
@@ -64,7 +64,7 @@ let timeChange: any; // 定时器
const
actions
=
createFormActions
()
const
UserRegistry
=
()
=>
{
const
[
current
,
setCurrent
]
=
useState
(
1
)
const
[
current
,
setCurrent
]
=
useState
(
0
)
const
[
subStep
,
setSubStep
]
=
useState
(
false
)
const
stepList
=
[
{
title
:
'填写信息'
,
key
:
'message'
,
name
:
'message'
},
...
...
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