From 95db36f778d5a6f4197cc2cde4390c84e57b26b6 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期三, 31 一月 2024 09:36:53 +0800
Subject: [PATCH] 开发业务接口
---
platform/src/components/common/UploadImage.vue | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/platform/src/components/common/UploadImage.vue b/platform/src/components/common/UploadImage.vue
index 67ccb8a..2327a37 100644
--- a/platform/src/components/common/UploadImage.vue
+++ b/platform/src/components/common/UploadImage.vue
@@ -59,7 +59,7 @@
},
data() {
return {
- uploadImgUrl: process.env.VUE_APP_API_PREFIX + '/public/uploadLocal',
+ uploadImgUrl: process.env.VUE_APP_API_PREFIX + '/public/upload',
realList: [],
srcList: [],
@@ -70,7 +70,6 @@
watch: {
fileList: {
handler(val) {
- console.log(val);
if (val.length==0) {
this.realList = []
this.srcList = []
@@ -121,8 +120,8 @@
this.showViewer = false
},
handleRemove(file) {
- console.log(this.fileList);
- let tempIndex = this.realList.findIndex(item => item.url === file.url)
+ console.log(file.url);
+ let tempIndex = this.fileList.findIndex(item => item.url === file.url)
// debugger
this.realList.splice(tempIndex, 1)
this.fileList.splice(tempIndex, 1)
--
Gitblit v1.9.3