From 08ad528e6141a7da922a7415d4112e09942c3921 Mon Sep 17 00:00:00 2001
From: long <515897141@qq.com>
Date: 星期五, 11 六月 2021 16:35:12 +0800
Subject: [PATCH] 添加上传文件组件、上传多类型文件(自动上传)组件

---
 src/components_simple/UploadSingleFile.vue |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/components_simple/UploadSingleFile.vue b/src/components_simple/UploadSingleFile.vue
index 4f4eba0..912e906 100644
--- a/src/components_simple/UploadSingleFile.vue
+++ b/src/components_simple/UploadSingleFile.vue
@@ -78,7 +78,7 @@
       const formData = new FormData()
       formData.append('file', file)
       this.postFN({
-        url: 'admin/image/upload?type=3',
+        url: 'admin/image/upload?folderCode=FILE',
         header: { 'Content-Type': 'multipart/form-data' },
         params: formData,
         mockData: {
@@ -90,7 +90,7 @@
         }
       }, (inf) => {
         // 鏇挎崲鎺夋湭涓婁紶鐨勬枃浠�
-        this.$emit('change', [{ name: '绱犳潗' + this.extname(inf.path), url: inf.path, status: 'success' }])
+        this.$emit('change', [{ name: '鏂囦欢' + this.extname(inf.path), url: inf.path, status: 'success' }])
 
         console.log('涓婁紶鏂囦欢鎴愬姛涓旂粨鏉�')
 

--
Gitblit v1.8.0