Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wx-school-app
Project
Overview
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
姜雷
wx-school-app
Commits
aa8945af
Commit
aa8945af
authored
Mar 12, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改登录以及注册的跳转方式
parent
2beebcbc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
Login.tsx
src/pages/Login/Login.tsx
+3
-1
Register.tsx
src/pages/Register/Register.tsx
+1
-1
No files found.
src/pages/Login/Login.tsx
View file @
aa8945af
...
...
@@ -14,6 +14,7 @@ type PageDispatchProps = {
};
type
PageState
=
{
fetching
:
boolean
;
account
:
string
;
pwd
:
string
;
};
...
...
@@ -39,6 +40,7 @@ class Login extends Component {
constructor
(
props
)
{
super
(
props
);
this
.
state
=
{
fetching
:
false
,
account
:
''
,
pwd
:
''
,
};
...
...
@@ -77,7 +79,7 @@ class Login extends Component {
const
data
=
res
.
data
;
console
.
log
(
data
);
updateUserInfo
(
data
);
Taro
.
re
directTo
({
Taro
.
re
Launch
({
url
:
'/pages/Home/Home'
,
});
})
...
...
src/pages/Register/Register.tsx
View file @
aa8945af
...
...
@@ -174,7 +174,7 @@ class Register extends Component {
title
:
'注册成功'
,
});
setTimeout
(()
=>
{
Taro
.
re
directTo
({
Taro
.
re
Launch
({
url
:
'/pages/Home/Home'
,
});
},
2000
);
...
...
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