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
P
pro-blocks
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
pro-blocks
Commits
46f69af6
Commit
46f69af6
authored
May 29, 2019
by
陈帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix login url
parent
8002969f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
UserLogin/src/_mock.ts
UserLogin/src/_mock.ts
+2
-2
UserLogin/src/service.ts
UserLogin/src/service.ts
+2
-2
No files found.
UserLogin/src/_mock.ts
View file @
46f69af6
...
...
@@ -3,7 +3,7 @@ function getFakeCaptcha(req: any, res: { json: (arg0: string) => void }) {
}
export
default
{
'
POST /api/account
'
:
(
'
POST /api/
login/
account
'
:
(
req
:
{
body
:
{
password
:
any
;
userName
:
any
;
type
:
any
}
},
res
:
{
send
:
(
data
:
any
)
=>
void
;
...
...
@@ -32,5 +32,5 @@ export default {
currentAuthority
:
'
guest
'
,
});
},
'
GET /api/captcha
'
:
getFakeCaptcha
,
'
GET /api/
login/
captcha
'
:
getFakeCaptcha
,
};
UserLogin/src/service.ts
View file @
46f69af6
...
...
@@ -2,12 +2,12 @@ import request from 'umi-request';
import
{
FromDataType
}
from
'
./index
'
;
export
async
function
fakeAccountLogin
(
params
:
FromDataType
)
{
return
request
(
'
/api/account
'
,
{
return
request
(
'
/api/
login/
account
'
,
{
method
:
'
POST
'
,
data
:
params
,
});
}
export
async
function
getFakeCaptcha
(
mobile
:
string
)
{
return
request
(
`/api/captcha?mobile=
${
mobile
}
`
);
return
request
(
`/api/
login/
captcha?mobile=
${
mobile
}
`
);
}
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