Explorar el Código

修改商品复制没有id问题

YY hace 2 años
padre
commit
9792762c33
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      src/views/platmanag/goods/index.vue
  2. 1 1
      src/views/selfShop/goods/index.vue

+ 1 - 1
src/views/platmanag/goods/index.vue

@@ -261,7 +261,7 @@ export default {
         type: 'warning',
       }).then(async () => {
         let res;
-        res = await this.copy(data.id);
+        res = await this.copy(data._id);
         if (this.$checkRes(res)) {
           this.$message({ type: `success`, message: `复制成功` });
           this.toBack();

+ 1 - 1
src/views/selfShop/goods/index.vue

@@ -217,7 +217,7 @@ export default {
         type: 'warning',
       }).then(async () => {
         let res;
-        res = await this.copy(data.id);
+        res = await this.copy(data._id);
         if (this.$checkRes(res)) {
           this.$message({ type: `success`, message: `复制成功` });
           this.toBack();