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