@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user