actions.js 276 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 import * as Types from './types'; export default { async getDetail({ commit }, { article_id }) { const result = await this.$api.get('/api/guang/article/detail', { article_id }); console.log(result); commit(Types.FETCH_GUANG_SUCCESS, result); } };