mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-08-06 10:57:26 +08:00
修改OSS资源回显
This commit is contained in:
@@ -431,7 +431,11 @@ export default {
|
||||
choose: {
|
||||
type: String,
|
||||
default: ""
|
||||
}
|
||||
},
|
||||
initialize: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -858,9 +862,15 @@ export default {
|
||||
if (val) this.selectImage = val
|
||||
},
|
||||
selectedOss(val) {
|
||||
if (val) {
|
||||
if (val && val.length) {
|
||||
this.$emit("callback", {url: val[val.length-1].split(',')[1]});
|
||||
}
|
||||
},
|
||||
// 初始化监听 是否清空所选图片
|
||||
initialize(val) {
|
||||
if (val && this.isComponent) {
|
||||
this.selectedOss = [];
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user