diff --git a/src/api/systemList/index.ts b/src/api/systemList/index.ts index e69de29..0ce18fc 100644 --- a/src/api/systemList/index.ts +++ b/src/api/systemList/index.ts @@ -0,0 +1,46 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { DemoVO, DemoForm, DemoQuery } from '@/api/demo/demo/types'; + +/** + * 查询首页logo + * /system/logo/get + */ +export const getDemo = () => { + return request({ + url: '/system/logo/get', + method: 'get' + }); +}; + +/** + * 上传图片 + * /system/logo/upload + * @param file 文件对象 + */ +export const uploadDemo = (file: File) => { + const formData = new FormData(); + formData.append('file', file); + + return request({ + url: '/system/logo/upload', + method: 'post', + data: formData, + headers: { + 'Content-Type': 'multipart/form-data' + } + }); +}; + +/** + * 修改logo + * /system/logo/edit + * @param data + */ +export const updateDemo = (data: any) => { + return request({ + url: '/system/logo/edit', + method: 'post', + data: data + }); +}; diff --git a/src/views/WarningList/list.vue b/src/views/WarningList/list.vue index d7a2941..d01b085 100644 --- a/src/views/WarningList/list.vue +++ b/src/views/WarningList/list.vue @@ -4,8 +4,8 @@
- - + + @@ -48,9 +48,9 @@ - + - +