完成访客搭建,完善之前审核界面

This commit is contained in:
Zy
2026-04-13 18:10:23 +08:00
parent d957d1a039
commit 7f152c45f5
34 changed files with 1732 additions and 1208 deletions

View File

@@ -125,12 +125,15 @@ export const houseUselist = ['普通住宅', '商业用地', '商住两用', '
// 对字符串 图片地址,处理
export function splitStringUrl(str: string, splitLabel: string = ',') {
const list = str.split(splitLabel);
return list.map((item) => {
return {
name: item.split('/').pop(),
url: item
};
});
const newlist = list
.map((item) => {
return {
name: item.split('/').pop(),
url: item
};
})
.filter((item) => item.name && item.url);
return newlist;
}
/**
* 判断 FormData 是否有数据