zhangyu 5 gadi atpakaļ
vecāks
revīzija
c8deb9a326
2 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 1 1
      src/api/model/file.js
  2. 2 2
      src/components/globaluploader/index.vue

+ 1 - 1
src/api/model/file.js

@@ -211,7 +211,7 @@ let api = {
     deleteModelFileList(params, success) {
         let data = {
             Id:params.Id,
-            IsForce: params.IsForce?params.IsForce:false
+            Force: params.Force?params.Force:false
         } 
         return httputils.postJson(`${baseUrl}/model-file/delete-file`, data, success)
     },

+ 2 - 2
src/components/globaluploader/index.vue

@@ -2,7 +2,7 @@
  * @Author: zhangyu
  * @Date: 2019-11-28 10:05:28
  * @Info: 
- * @LastEditTime : 2019-12-25 17:33:34
+ * @LastEditTime : 2019-12-25 17:48:31
  -->
 <template>
   <div id="global-uploader">
@@ -213,7 +213,7 @@ export default {
       },1))
       this.setUploaderList(this.uploaderList);
       if(file.modelId && !file.isComplete()) {
-        request.deleteModelFileList({Id: file.modelId, IsForce: true}, res => {
+        request.deleteModelFileList({Id: file.modelId, Force: true}, res => {
           console.log('删除错误模型:',file.modelId);
           Bus.$emit('modelStatusChange')
         })