Explorar o código

Fix: 图库管理编辑接口

chris %!s(int64=3) %!d(string=hai) anos
pai
achega
fd7b56398e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/views/modules/tech/draw-add-or-update.vue

+ 1 - 1
src/views/modules/tech/draw-add-or-update.vue

@@ -111,7 +111,7 @@
               }
             }
             this.$http({
-              url: this.$http.adornUrl(`/biz-service/drawing/save`),
+              url: !this.id ? this.$http.adornUrl(`/biz-service/drawing/save`) : this.$http.adornUrl(`/biz-service/drawing/update`),
               method: 'post',
               data: this.$http.adornData({...this.dataForm, orgId: this.orgId})
             }).then(({data}) => {