Преглед на файлове

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);