[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

View File

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