diff --git a/src/api/bgList.js b/src/api/bgList.js new file mode 100644 index 0000000..71cafe4 --- /dev/null +++ b/src/api/bgList.js @@ -0,0 +1,40 @@ +import service from '@/utils/request' +const api = { + // 背景图api + getBgManageList: data => { + return service({ + url: '/poster/list', + method: 'get', + params: data + }) + }, + addBgManage: data => { + return service({ + url: '/poster', + method: 'post', + data + }) + }, + editBgManage: data => { + return service({ + url: '/poster', + method: 'put', + data + }) + }, + delBg: data => { + return service({ + url: '/poster', + method: 'delete', + data + }) + }, + editBgState: data => { + return service({ + url: '/banner/status', + method: 'put', + data + }) + }, +} +export default api diff --git a/src/view/article/index.vue b/src/view/article/index.vue index 0f4992d..26f1376 100644 --- a/src/view/article/index.vue +++ b/src/view/article/index.vue @@ -296,9 +296,10 @@ function beforeAvatarUpload(file) {
-