feat 上传图片

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Ironsp
2026-05-25 14:55:19 +08:00
parent 74e3b26616
commit fc3d81f482

View File

@@ -53,7 +53,7 @@ import { get } from 'node:http';
const uploadUrl = import.meta.env.VITE_BASE_API + '/system/logo/upload';
const form = reactive({
name: '',
name: '可视化电子围栏管理系统',
remark: '',
logoUrl: ''
});
@@ -81,7 +81,6 @@ const cancel = () => {
form.name = '';
};
const save = async () => {
getList();
updateDemo(form)
.then((res) => {
console.log('保存成功', res);
@@ -121,6 +120,7 @@ const handleChange = (file: any) => {
url: res.data.url
};
fileList.value = [logoImage];
getList(); // 刷新列表获取最新的 logo URL
})
.catch((err) => {
console.error('上传失败', err);