Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ant-design-pro-vue
Overview
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
tianzhuanghu
ant-design-pro-vue
Commits
97b55a4b
Unverified
Commit
97b55a4b
authored
Jan 16, 2019
by
Sendya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: login
parent
65da5511
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
87 additions
and
89 deletions
+87
-89
index.js
src/api/index.js
+1
-0
login.js
src/api/login.js
+13
-0
Login.vue
src/views/user/Login.vue
+73
-89
No files found.
src/api/index.js
View file @
97b55a4b
...
...
@@ -3,6 +3,7 @@ const api = {
Logout
:
'/auth/logout'
,
ForgePassword
:
'/auth/forge-password'
,
Register
:
'/auth/register'
,
twoStepCode
:
'/auth/2step-code'
,
SendSms
:
'/account/sms'
,
SendSmsErr
:
'/account/sms_err'
,
// get my info
...
...
src/api/login.js
View file @
97b55a4b
...
...
@@ -47,3 +47,15 @@ export function logout() {
}
})
}
/**
* get user 2step code open?
* @param parameter {*}
*/
export
function
get2step
(
parameter
)
{
return
axios
({
url
:
api
.
twoStepCode
,
method
:
'post'
,
data
:
parameter
})
}
\ No newline at end of file
src/views/user/Login.vue
View file @
97b55a4b
This diff is collapsed.
Click to expand it.
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