This commit is contained in:
syuilo
2018-02-18 12:35:18 +09:00
parent 61b95e0c26
commit 99b3499364
103 changed files with 878 additions and 790 deletions

View File

@@ -68,7 +68,7 @@ export default Vue.extend({
},
methods: {
react(reaction) {
this.$root.$data.os.api('posts/reactions/create', {
(this as any).api('posts/reactions/create', {
post_id: this.post.id,
reaction: reaction
}).then(() => {