提交阶段性预览
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user