Created
November 7, 2019 02:49
-
-
Save ambrizals/821829df85cbf0ab66ce568b60ebefda to your computer and use it in GitHub Desktop.
Original Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uploadCover() { | |
this.progressDialog = true | |
let formData = new FormData() | |
formData.append('cover_article', this.imgCover) | |
upload.post('atk/posts/cover/'+this.params, formData).then((res) => { | |
this.form.coverArticle = res.data | |
this.imgCover = null | |
this.progressDialog = false | |
this.updateCover = false | |
}).catch(() => { | |
this.progressDialog = false | |
this.updateCover = false | |
}) | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Errornya pun masih sama untuk cara yang ini.
![image](https://user-images.githubusercontent.com/8018183/68397308-e2b69880-016a-11ea-99d9-068f4598a1f4.png)