Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Guten-PigxUI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
黄卓然
Guten-PigxUI
Commits
c03278f5
Commit
c03278f5
authored
Sep 20, 2018
by
smallwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chomd(cli): close eslint
parent
fdca409f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
40 deletions
+38
-40
.eslintrc.js
.eslintrc.js
+14
-15
user.js
src/api/user.js
+24
-25
No files found.
.eslintrc.js
View file @
c03278f5
module
.
exports
=
{
module
.
exports
=
{
root
:
true
,
root
:
true
,
env
:
{
env
:
{
node
:
true
node
:
true
},
},
'extends'
:
[
'extends'
:
[
'plugin:vue/essential'
,
"plugin:vue/essential"
'eslint:recommended'
],
],
rules
:
{
rules
:
{
'no-console'
:
process
.
env
.
NODE_ENV
===
'production'
?
'error'
:
'off'
,
'no-console'
:
process
.
env
.
NODE_ENV
===
'production'
?
'error'
:
'off'
,
'no-debugger'
:
process
.
env
.
NODE_ENV
===
'production'
?
'error'
:
'off'
'no-debugger'
:
process
.
env
.
NODE_ENV
===
'production'
?
'error'
:
'off'
},
},
parserOptions
:
{
parserOptions
:
{
parser
:
'babel-eslint'
parser
:
'babel-eslint'
}
}
}
}
\ No newline at end of file
src/api/user.js
View file @
c03278f5
...
@@ -18,40 +18,39 @@
...
@@ -18,40 +18,39 @@
import
request
from
'@/router/axios'
import
request
from
'@/router/axios'
export
function
fetchList
(
query
)
{
export
function
fetchList
(
query
)
{
return
request
({
return
request
({
url
:
'/admin/user/userPage'
,
url
:
'/admin/user/userPage'
,
method
:
'get'
,
method
:
'get'
,
params
:
query
params
:
query
})
})
}
}
export
function
addObj
(
obj
)
{
export
function
addObj
(
obj
)
{
return
request
({
return
request
({
url
:
'/admin/user/'
,
url
:
'/admin/user/'
,
method
:
'post'
,
method
:
'post'
,
data
:
obj
data
:
obj
})
})
}
}
export
function
getObj
(
id
)
{
export
function
getObj
(
id
)
{
return
request
({
return
request
({
url
:
'/admin/user/'
+
id
,
url
:
'/admin/user/'
+
id
,
method
:
'get'
method
:
'get'
})
})
}
}
export
function
delObj
(
id
)
{
export
function
delObj
(
id
)
{
return
request
({
return
request
({
url
:
'/admin/user/'
+
id
,
url
:
'/admin/user/'
+
id
,
method
:
'delete'
method
:
'delete'
})
})
}
}
export
function
putObj
(
obj
)
{
export
function
putObj
(
obj
)
{
return
request
({
return
request
({
url
:
'/admin/user'
,
url
:
'/admin/user'
,
method
:
'put'
,
method
:
'put'
,
data
:
obj
data
:
obj
})
})
}
}
\ No newline at end of file
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