From cece17f846dca06261e4b56fb2b9789dec380670 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 26 一月 2024 15:20:16 +0800
Subject: [PATCH] Mr.Shi
---
platform/src/components/common/UploadImage.vue | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/platform/src/components/common/UploadImage.vue b/platform/src/components/common/UploadImage.vue
index 2327a37..67ccb8a 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/upload',
+ uploadImgUrl: process.env.VUE_APP_API_PREFIX + '/public/uploadLocal',
realList: [],
srcList: [],
@@ -70,6 +70,7 @@
watch: {
fileList: {
handler(val) {
+ console.log(val);
if (val.length==0) {
this.realList = []
this.srcList = []
@@ -120,8 +121,8 @@
this.showViewer = false
},
handleRemove(file) {
- console.log(file.url);
- let tempIndex = this.fileList.findIndex(item => item.url === file.url)
+ console.log(this.fileList);
+ let tempIndex = this.realList.findIndex(item => item.url === file.url)
// debugger
this.realList.splice(tempIndex, 1)
this.fileList.splice(tempIndex, 1)
--
Gitblit v1.9.3