同步
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import myaxios from '@/util/myaxios'
|
||||
export default {
|
||||
Upload(file) {
|
||||
EditIcon(file) {
|
||||
return myaxios({
|
||||
url: '/File/Upload',
|
||||
url: '/File/EditIcon',
|
||||
method: 'post',
|
||||
headers: { "Content-Type": "multipart/form-data" },
|
||||
data: file
|
||||
|
||||
@@ -334,7 +334,7 @@ choiceImg() {
|
||||
const file = this.$refs.imgFile.files[0];
|
||||
let formData = new FormData();
|
||||
formData.append("img", file);
|
||||
fileApi.Upload(formData).then(resp=>{
|
||||
fileApi.EditIcon(formData).then(resp=>{
|
||||
this.init();
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user