Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
web-monitor
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
Administrator
web-monitor
Commits
3abc6b14
Commit
3abc6b14
authored
Nov 24, 2017
by
Pan
Committed by
花裤衩
Nov 29, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor:change fetch => fetch
parent
52bfe11b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
login.js
src/api/login.js
+4
-4
table.js
src/api/table.js
+2
-2
request.js
src/utils/request.js
+0
-0
No files found.
src/api/login.js
View file @
3abc6b14
import
fetch
from
'@/utils/fetch
'
import
request
from
'@/utils/request
'
export
function
login
(
username
,
password
)
{
return
fetch
({
return
request
({
url
:
'/user/login'
,
method
:
'post'
,
data
:
{
...
...
@@ -12,7 +12,7 @@ export function login(username, password) {
}
export
function
getInfo
(
token
)
{
return
fetch
({
return
request
({
url
:
'/user/info'
,
method
:
'get'
,
params
:
{
token
}
...
...
@@ -20,7 +20,7 @@ export function getInfo(token) {
}
export
function
logout
()
{
return
fetch
({
return
request
({
url
:
'/user/logout'
,
method
:
'post'
})
...
...
src/api/table.js
View file @
3abc6b14
import
fetch
from
'@/utils/fetch
'
import
request
from
'@/utils/request
'
export
function
getList
(
params
)
{
return
fetch
({
return
request
({
url
:
'/table/list'
,
method
:
'get'
,
params
...
...
src/utils/
fetch
.js
→
src/utils/
request
.js
View file @
3abc6b14
File moved
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