Просмотр исходного кода

fix: 23964 (v1.1.0全景看看)我的素材-图片,当仅有一张图片时,预览图片,删除图片后,应关闭预览弹窗

任一存 4 лет назад
Родитель
Сommit
384eaff1e0
2 измененных файлов с 6 добавлено и 0 удалено
  1. 3 0
      src/views/material/image/index.vue
  2. 3 0
      src/views/material/pano/index.vue

+ 3 - 0
src/views/material/image/index.vue

@@ -251,6 +251,9 @@ export default {
                   if (this.list.length === data.data.total) {
                     this.hasMoreData = false
                   }
+                  if (this.list.length === 0) {
+                    this.$refs['image-previewer'].onClickClose()
+                  }
                 } else {
                   console.error('在素材列表里没找到要删除的那一项!');
                 }

+ 3 - 0
src/views/material/pano/index.vue

@@ -381,6 +381,9 @@ export default {
                   if (this.list.length === data.data.total) {
                     this.hasMoreData = false
                   }
+                  if (this.list.length === 0) {
+                    this.$refs['image-previewer'].onClickClose()
+                  }
                 } else {
                   console.error('在素材列表里没找到要删除的那一项!');
                 }