bug修改

This commit is contained in:
clay 2022-01-06 16:06:11 +08:00
parent b9253786ce
commit 2cce05442d
1 changed files with 14 additions and 11 deletions

View File

@ -60,10 +60,10 @@ export default {
FileUpload
},
props: {
// value: {
// type: String,
// default: "",
// },
value: {
type: String,
default: "",
},
/**
* 文件类型 图片:image 文件:file
*/
@ -110,7 +110,7 @@ export default {
fileAddr: "",
unionId: this.unionId,
},
staticUrl: "",
staticUrl: this.value,
//
folderOptions: [],
//
@ -125,12 +125,14 @@ export default {
}
},
created() {
if (this.vPublic === null){
getRoleAll().then(res => {
this.roleOptions = res.data
})
getFolder().then(res => {
this.folderOptions = res.data
})
}
},
methods: {
/**
@ -151,6 +153,7 @@ export default {
*/
changeAddress(addr) {
this.form.fileAddr = addr
this.uploadFile();
},
uploadFile() {
let flag = false