소스 검색

improve: 图片移动判断

From-wh 2 년 전
부모
커밋
3bee77da19
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      template/admin/src/components/uploadPictures/index.vue

+ 1 - 0
template/admin/src/components/uploadPictures/index.vue

@@ -396,6 +396,7 @@ export default {
         pid: this.pids,
         images: this.ids.toString(),
       };
+      if (!data.images) return;
       moveApi(data)
         .then(async (res) => {
           this.$Message.success(res.msg);