From 466230c2c00e08099e473db9b5e86025c5ba9ea7 Mon Sep 17 00:00:00 2001 From: Ironsp <1522278303@qq.com> Date: Mon, 25 May 2026 08:34:17 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E6=8E=A5=E5=8F=A3=E8=81=94=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Copilot --- src/api/systemList/index.ts | 46 ++++++++++++ src/views/WarningList/list.vue | 11 +-- src/views/fileList/list.vue | 20 +++-- src/views/systemList/base/base.vue | 114 +++++++++++++++++++++++++---- 4 files changed, 165 insertions(+), 26 deletions(-) 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 @@ - + - +