Last active
December 24, 2018 05:27
-
-
Save y-temp4/7a4148f1e2cf070add76ab0e95bde9e2 to your computer and use it in GitHub Desktop.
Nuxt.js を用いた新規事業開発を半年以上経験して得た知見 ref: https://qiita.com/y-temp4/items/b8cbedbd95163da82911
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
async getLikesCount({ commit }, { articleId }) { | |
const { count: likesCount } = await this.$axios.$get(`/articles/${articleId}/likes`) | |
return likesCount | |
} |
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
import Vue from 'vue' | |
import Vuex from 'vuex' | |
import { createModule } from 'vuex-toast' | |
import article from './modules/article' | |
import user from './modules/user' | |
import tag from './modules/tag' | |
import report from './modules/report' | |
import presentation from './modules/presentation' | |
Vue.use(Vuex) | |
export default () => | |
new Vuex.Store({ | |
modules: { | |
article, | |
user, | |
tag, | |
report, | |
presentation, | |
toast: createModule({ | |
dismissInterval: 2000 | |
}) | |
} | |
}) |
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
render: { | |
- gzip: false | |
+ compressor: (req, res, next) => { | |
+ next() | |
+ } | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment