Pārlūkot izejas kodu

improve: 图片移动判断

From-wh 2 gadi atpakaļ
vecāks
revīzija
3bee77da19

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

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