Browse Source

更改uploadController为fileController

duxiangyu 3 years ago
parent
commit
63ab4d91d1

+ 2 - 2
src/components/project-manage/form/items/ImageUpload.vue

@@ -140,7 +140,7 @@ import Left from "../static/iconSvg/left.svg";
 import Download from "../static/iconSvg/download.svg";
 import OriginalSize from "../static/iconSvg/original_size.svg";
 import SmallImage from "../static/iconSvg/small_image.svg";
-import UploadController from "@/controller/uploadController";
+import FileController from "@/controller/fileController";
 // import {Message} from '../Message';
 // import ajax from '../static/utils/Ajax';
 
@@ -515,7 +515,7 @@ export default {
         "color: #bf2c9f; background: pink; font-size: 13px;",
         fileItem
       );
-      const uploadResult = await UploadController.uploadFiles({
+      const uploadResult = await FileController.uploadFiles({
         uploadProgressCall: function (_obj) {
           console.log("uploadProgressCall", _obj);
         },

+ 1 - 1
src/controller/uploadController.ts

@@ -1,6 +1,6 @@
 import { fileHttpUtils } from "../utils/http/fileHttpUtils";
 
-export default class UploadController {
+export default class FileController {
   static http = new fileHttpUtils();
 
   /**