From 2d9354a39e50c042a5d4e4f97f9ccb6e0802db2e Mon Sep 17 00:00:00 2001
From: long <515897141@qq.com>
Date: 星期五, 11 六月 2021 17:03:22 +0800
Subject: [PATCH] 修复接口返回字段名

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

diff --git a/src/components_simple/UploadSingleFile.vue b/src/components_simple/UploadSingleFile.vue
index e9e2608..be92a89 100644
--- a/src/components_simple/UploadSingleFile.vue
+++ b/src/components_simple/UploadSingleFile.vue
@@ -85,18 +85,18 @@
           code: 100,
           msg: '',
           data: {
-            path: '涓婁紶鏂囦欢鎴愬姛'
+            imgUrl: '涓婁紶鏂囦欢鎴愬姛'
           }
         }
       }, (inf) => {
         // 鏇挎崲鎺夋湭涓婁紶鐨勬枃浠�
-        this.$emit('change', [{ name: '鏂囦欢' + this.extname(inf.path), url: inf.path, status: 'success' }])
+        this.$emit('change', [{ name: '鏂囦欢' + this.extname(inf.imgUrl), url: inf.imgUrl, status: 'success' }])
 
         console.log('涓婁紶鏂囦欢鎴愬姛涓旂粨鏉�')
 
         // 鎻愪氦
-        // this.$set(this.dialogData, 'path', inf.path)
-        this.callback && this.callback(inf.path)
+        // this.$set(this.dialogData, 'imgUrl', inf.imgUrl)
+        this.callback && this.callback(inf.imgUrl)
       })
     },
     // 鑾峰彇鏂囦欢鍚庣紑鍚�

--
Gitblit v1.8.0