From f989d1ef4ef4621f471e0aba58236ffefab5ea53 Mon Sep 17 00:00:00 2001 From: 15386982806 Date: Fri, 15 Mar 2024 10:35:25 +0800 Subject: [PATCH] =?UTF-8?q?OSS=E8=B5=84=E6=BA=90=E5=9B=9E=E6=98=BE?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/components/lili/upload-pic-input.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/manager/src/components/lili/upload-pic-input.vue b/manager/src/components/lili/upload-pic-input.vue index 3e7cab05..c5814aaf 100644 --- a/manager/src/components/lili/upload-pic-input.vue +++ b/manager/src/components/lili/upload-pic-input.vue @@ -111,9 +111,12 @@ export default { }, // 图片回显 callbackSelected(val) { + console.log('图片回显', val); this.picModalFlag = false; this.currentValue = val.url; this.picIndex = ""; + this.$emit("input", this.currentValue); + this.$emit("on-change", this.currentValue); }, // 初始化 init() { @@ -150,7 +153,6 @@ export default { this.loading = false; if (res.success) { this.currentValue = res.result; - console.log('this.currentValue', this.currentValue); this.$emit("input", this.currentValue); this.$emit("on-change", this.currentValue); } else { @@ -174,6 +176,7 @@ export default { return; } this.currentValue = value; + this.$emit("input", this.currentValue); this.$emit("on-change", this.currentValue); } },