Skip to content

Instantly share code, notes, and snippets.

@y-temp4
Last active December 24, 2018 05:27
Show Gist options
  • Save y-temp4/7a4148f1e2cf070add76ab0e95bde9e2 to your computer and use it in GitHub Desktop.
Save y-temp4/7a4148f1e2cf070add76ab0e95bde9e2 to your computer and use it in GitHub Desktop.
Nuxt.js を用いた新規事業開発を半年以上経験して得た知見 ref: https://qiita.com/y-temp4/items/b8cbedbd95163da82911
async getLikesCount({ commit }, { articleId }) {
const { count: likesCount } = await this.$axios.$get(`/articles/${articleId}/likes`)
return likesCount
}
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
})
}
})
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