!108 update src/components/ImagePreview/index.vue.

Merge pull request !108 from 落叶橘橙/N/A
This commit is contained in:
疯狂的狮子Li 2024-04-25 02:16:33 +00:00 committed by Gitee
commit 4660aa6e95
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -38,6 +38,9 @@ const realSrcList = computed(() => {
let real_src_list = props.src.split(',');
let srcList: string[] = [];
real_src_list.forEach((item: string) => {
if(item.trim() === '') {
return;
}
return srcList.push(item);
});
return srcList;