mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-13 03:15:48 +02:00
bug fix
This commit is contained in:
parent
ad421905a8
commit
dd6e19657a
162 changed files with 15071 additions and 932 deletions
23
frontend/src/api/user.js
Normal file
23
frontend/src/api/user.js
Normal file
|
@ -0,0 +1,23 @@
|
|||
import http from '@/lib/http'
|
||||
|
||||
const base_url = '/user'
|
||||
|
||||
const user = {
|
||||
get_list(params) {
|
||||
return http.get(base_url + 's', {params: params})
|
||||
},
|
||||
|
||||
get(id) {
|
||||
return http.get(base_url + '/' + id)
|
||||
},
|
||||
|
||||
save(id = null, data) {
|
||||
return http.post(base_url + (id ? '/' + id : ''), data)
|
||||
},
|
||||
|
||||
destroy(id) {
|
||||
return http.delete(base_url + '/' + id)
|
||||
}
|
||||
}
|
||||
|
||||
export default user
|
Loading…
Add table
Add a link
Reference in a new issue