feat:员工管理上传formdata格式
This commit is contained in:
parent
94b4ae2125
commit
3316cfafdb
@ -187,9 +187,11 @@ export default {
|
||||
methods: {
|
||||
// 上传文件
|
||||
async handleChange (file) {
|
||||
console.log('file: ', file)
|
||||
let data = new FormData()
|
||||
data.append('filename', file)
|
||||
data.append('filename', file.raw)
|
||||
this.isUploading = true
|
||||
// return
|
||||
let result = await apiUploadFile(data)
|
||||
this.isUploading = false
|
||||
if (result.code === 0) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user