update image thumb
This commit is contained in:
@@ -114,6 +114,7 @@ type AddAction = {
|
||||
|
||||
type PhotoItem = {
|
||||
attachType?: string;
|
||||
previewUrl?: string;
|
||||
url: string;
|
||||
};
|
||||
|
||||
@@ -182,7 +183,7 @@ function removePhoto(index: number): void {
|
||||
|
||||
function openPhotoViewer(index: number): void {
|
||||
const photoList = [...displayPhotoList.value.slice(index), ...displayPhotoList.value.slice(0, index)];
|
||||
photoViewerImages.value = photoList.map(item => item.url);
|
||||
photoViewerImages.value = photoList.map(item => item.previewUrl || item.url);
|
||||
photoViewerVisible.value = true;
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user