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) {
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);
}
},