This commit is contained in:
aozhiwei 2024-04-12 08:04:46 +08:00
parent ee51d91162
commit e974f9b9c0
5 changed files with 15 additions and 28 deletions

View File

@ -2,5 +2,5 @@
ENV = 'development' ENV = 'development'
# base api # base api
#VUE_APP_BASE_API = 'http://127.0.0.1:3000/api/v1' VUE_APP_BASE_API = 'http://friend-test.kingsome.cn/admin/api/v1'
VUE_APP_BASE_API = '/dev-api' #VUE_APP_BASE_API = '/dev-api'

View File

@ -4,8 +4,7 @@ export function addAnnc(data) {
return request({ return request({
url: '/annc/addAnnc', url: '/annc/addAnnc',
method: 'post', method: 'post',
data, data
baseURL: 'http://127.0.0.1:3000/api/v1'
}) })
} }
@ -13,8 +12,7 @@ export function getAnncList(data) {
return request({ return request({
url: '/annc/anncList', url: '/annc/anncList',
method: 'get', method: 'get',
data, data
baseURL: 'http://127.0.0.1:3000/api/v1'
}) })
} }
@ -22,7 +20,6 @@ export function updateAnnc(data) {
return request({ return request({
url: '/annc/updateAnnc/' + data.idx, url: '/annc/updateAnnc/' + data.idx,
method: 'put', method: 'put',
data, data
baseURL: 'http://127.0.0.1:3000/api/v1'
}) })
} }

View File

@ -4,8 +4,7 @@ export function addAudit(data) {
return request({ return request({
url: '/audit/addAudit', url: '/audit/addAudit',
method: 'post', method: 'post',
data, data
baseURL: 'http://127.0.0.1:3000/api/v1'
}) })
} }
@ -13,8 +12,7 @@ export function getAuditList(data) {
return request({ return request({
url: '/audit/auditList', url: '/audit/auditList',
method: 'get', method: 'get',
data, data
baseURL: 'http://127.0.0.1:3000/api/v1'
}) })
} }
@ -22,7 +20,6 @@ export function updateAudit(data) {
return request({ return request({
url: '/audit/updateAudit/' + data.idx, url: '/audit/updateAudit/' + data.idx,
method: 'put', method: 'put',
data, data
baseURL: 'http://127.0.0.1:3000/api/v1'
}) })
} }

View File

@ -4,16 +4,14 @@ export function sendEmail(data) {
return request({ return request({
url: '/email/send', url: '/email/send',
method: 'post', method: 'post',
data, data
baseURL: 'http://127.0.0.1:3000/api/v1'
}) })
} }
export function getEmailList() { export function getEmailList() {
return request({ return request({
url: '/email/list', url: '/email/list',
method: 'get', method: 'get'
baseURL: 'http://127.0.0.1:3000/api/v1'
}) })
} }
@ -21,15 +19,13 @@ export function updateEmail(data) {
return request({ return request({
url: '/email/update', url: '/email/update',
method: 'put', method: 'put',
data, data
baseURL: 'http://127.0.0.1:3000/api/v1'
}) })
} }
export function delEmail(mailid) { export function delEmail(mailid) {
return request({ return request({
url: '/email/delete/' + mailid, url: '/email/delete/' + mailid,
method: 'delete', method: 'delete'
baseURL: 'http://127.0.0.1:3000/api/v1'
}) })
} }

View File

@ -4,23 +4,20 @@ export function login(data) {
return request({ return request({
url: '/user/login', url: '/user/login',
method: 'post', method: 'post',
data, data
baseURL: 'http://127.0.0.1:3000/api/v1'
}) })
} }
export function getInfo(token) { export function getInfo(token) {
return request({ return request({
url: '/user/info', url: '/user/info',
method: 'get', method: 'get'
baseURL: 'http://127.0.0.1:3000/api/v1'
}) })
} }
export function logout() { export function logout() {
return request({ return request({
url: '/user/logout', url: '/user/logout',
method: 'get', method: 'get'
baseURL: 'http://127.0.0.1:3000/api/v1'
}) })
} }