Browse Source

fix: product cannot be modified

Casper Dai 3 năm trước cách đây
mục cha
commit
9664699a8b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/views/realm/device/Product.vue

+ 1 - 1
src/views/realm/device/Product.vue

@@ -194,7 +194,7 @@ export default {
         done()
         return Promise.reject()
       }
-      return (this.isAdd ? addProduct : this.updateProduct)(this.currObj).then(done)
+      return (this.isAdd ? addProduct : updateProduct)(this.currObj).then(done)
     },
     onDel (product) {
       return deleteProduct(product).then(() => {