OSS资源回显问题

master
15386982806 2024-03-15 10:35:25 +08:00
parent 99455dee58
commit f989d1ef4e
1 changed files with 4 additions and 1 deletions

View File

@ -111,9 +111,12 @@ export default {
}, },
// //
callbackSelected(val) { callbackSelected(val) {
console.log('图片回显', val);
this.picModalFlag = false; this.picModalFlag = false;
this.currentValue = val.url; this.currentValue = val.url;
this.picIndex = ""; this.picIndex = "";
this.$emit("input", this.currentValue);
this.$emit("on-change", this.currentValue);
}, },
// //
init() { init() {
@ -150,7 +153,6 @@ export default {
this.loading = false; this.loading = false;
if (res.success) { if (res.success) {
this.currentValue = res.result; this.currentValue = res.result;
console.log('this.currentValue', this.currentValue);
this.$emit("input", this.currentValue); this.$emit("input", this.currentValue);
this.$emit("on-change", this.currentValue); this.$emit("on-change", this.currentValue);
} else { } else {
@ -174,6 +176,7 @@ export default {
return; return;
} }
this.currentValue = value; this.currentValue = value;
this.$emit("input", this.currentValue);
this.$emit("on-change", this.currentValue); this.$emit("on-change", this.currentValue);
} }
}, },