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