bug修改
This commit is contained in:
parent
b9253786ce
commit
2cce05442d
|
|
@ -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() {
|
||||
getRoleAll().then(res => {
|
||||
this.roleOptions = res.data
|
||||
})
|
||||
getFolder().then(res => {
|
||||
this.folderOptions = res.data
|
||||
})
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue