Ver código fonte

:recycle: fixing getter and action import

tags/0.9.0
J 4 anos atrás
pai
commit
cc57584b6f
2 arquivos alterados com 2 adições e 2 exclusões
  1. 1
    1
      vue-theme/src/store/actions.js
  2. 1
    1
      vue-theme/src/store/getters.js

+ 1
- 1
vue-theme/src/store/actions.js Ver arquivo

@@ -1,7 +1,7 @@
1 1
 import api from '../utils/api'
2 2
 
3 3
 // for global actions
4
-export default () => {
4
+export default {
5 5
     getRandom({ commit }, types) {
6 6
         commit('CLEAR_RANDOM')
7 7
         commit('RANDOM_LOADED', false)

+ 1
- 1
vue-theme/src/store/getters.js Ver arquivo

@@ -1,5 +1,5 @@
1 1
 // For global getters
2
-export default () => {
2
+export default {
3 3
     randomPosts: state => state.randomPosts,
4 4
     randomPostsLoaded: state => state.randomPostsLoaded,
5 5
 }

Carregando…
Cancelar
Salvar