- 通过动态属性的方法访问 object[]
uploadRequest(loadingFlag, fileObj, imgStr) {
this[loadingFlag] = true //通过[]括号来访问或设置对象动态属性
},
customRequest() {
this.uploadRequest('loading', 'coverFile', 'imgOssCover')
},
customDetailRequest() {
this.uploadRequest('detailLoading', 'detailCoverFile', 'imgOssDetail')
}