[improvement] Sku: should close image preview when popstate (#4152)

This commit is contained in:
neverland 2019-08-19 14:11:58 +08:00 committed by GitHub
parent a730a55e3b
commit a3712f7c5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -368,6 +368,7 @@ export default createComponent({
ImagePreview({ ImagePreview({
images: this.imageList, images: this.imageList,
startPosition: index, startPosition: index,
closeOnPopstate: true,
onClose: () => { onClose: () => {
this.$emit('close-preview', params); this.$emit('close-preview', params);
} }