fix: ImageViewer isLast attribute calculation error issue (#1902) (#2125)

Co-authored-by: yangyu8 <yangyu8@kingsoft.com>
This commit is contained in:
msidolphin 2021-06-02 18:36:03 +08:00 committed by GitHub
parent a08f9efcbb
commit e4a2245258
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,7 +144,7 @@ export default defineComponent({
})
const isLast = computed(() => {
return index.value === 0
return index.value === props.urlList.length - 1
})
const currentImg = computed(() => {