提交阶段性预览

This commit is contained in:
Zy
2026-04-20 16:38:04 +08:00
parent d0888c6afb
commit 9f9a88f303
39 changed files with 2987 additions and 194 deletions

View File

@@ -301,7 +301,7 @@ const submitForm = () => {
newFiles.forEach((file) => formdata.append('files', file));
uploadVillageImageAPI(formdata).then((res) => {
const uploadedUrls = res.data.map((x) => x.url).filter(Boolean);
const uploadedUrls = res.data.success.map((x) => x.url).filter(Boolean);
// 4) 最终图片 = 已有图片 + 新上传图片(避免覆盖)
form.value.villageImageUrl = [...existingUrls, ...uploadedUrls].join(',');
submitFormInfo();
@@ -358,13 +358,13 @@ const cancelForm = () => {
<style scoped lang="scss">
.box {
background: linear-gradient(180deg, #deedff 0%, #f8f9fe 50%);
.header {
display: flex;
align-items: center;
height: 50px;
line-height: 50px;
background-color: #1a75ff;
background-color: #dfedff;
background: linear-gradient(180deg, #deedff 0%, #f8f9fe 50%);
& > div {
flex: 1;
}