Переглянути джерело

:recycle: fixing destructure sort pass in episodes | some syntax clean-up

tags/0.9.0
J 4 роки тому
джерело
коміт
e45e575909

+ 1
- 1
vue-theme/src/pages/index.vue Переглянути файл

@@ -78,7 +78,7 @@ export default {
78 78
                 }
79 79
             }
80 80
         }
81
-        await this.$store.dispatch('getRandomPosts', ['episode', 'exhibition', 'event', 'artist', 'post'])
81
+        await this.$store.dispatch('getRandomPosts', ['episode', 'exhibition', 'event', 'artist', 'artist', 'post'])
82 82
         this.checkAndSetHero('welcome')
83 83
     },
84 84
     methods: {

+ 1
- 1
vue-theme/src/store/modules/episode.js Переглянути файл

@@ -17,7 +17,7 @@ const getters = {
17 17
 }
18 18
 
19 19
 const actions = {
20
-    getAllEpisodes({ commit }, sortType) {
20
+    getAllEpisodes({ commit }, { sortType }) {
21 21
         commit('CLEAR_EPISODES')
22 22
         commit('EPISODES_LOADED', false)
23 23
         return api.getByType({ type: 'episode', sort: sortType, cb: episodes => {

+ 1
- 1
vue-theme/src/store/modules/page.js Переглянути файл

@@ -15,7 +15,7 @@ const getters = {
15 15
 
16 16
 // actions
17 17
 const actions = {
18
-    async getAllPages({ commit }, sortType) {
18
+    async getAllPages({ commit }, { sortType }) {
19 19
         commit('PAGES_LOADED', false)
20 20
         return await api.getByType({ type: 'page', sort: sortType, cb: pages => {
21 21
                 commit('STORE_FETCHED_PAGES', { pages })

+ 1
- 1
vue-theme/src/store/modules/post.js Переглянути файл

@@ -12,7 +12,7 @@ const getters = {
12 12
 }
13 13
 
14 14
 const actions = {
15
-    getAllPosts({ commit },{ sortType, params }) {
15
+    getAllPosts({ commit }, { sortType, params }) {
16 16
         commit('CLEAR_POSTS')
17 17
         commit('POSTS_LOADED', false)
18 18
         return api.getByType({ type: 'post', sort: sortType, cb: posts => {

+ 1
- 1
vue-theme/src/store/modules/sticky.js Переглянути файл

@@ -11,7 +11,7 @@ const getters = {
11 11
 }
12 12
 
13 13
 const actions = {
14
-    getAllSticky({ commit }, sortType) {
14
+    getAllSticky({ commit }) {
15 15
         commit('CLEAR_STICKY')
16 16
         commit('STICKY_LOADED', false)
17 17
         return api.getSticky(posts => {

Завантаження…
Відмінити
Зберегти