diff --git a/src/components/detail.vue b/src/components/detail.vue new file mode 100644 index 0000000..3e6d3bd --- /dev/null +++ b/src/components/detail.vue @@ -0,0 +1,24 @@ + + + diff --git a/src/store.js b/src/store.js index f1ef914..e98a833 100644 --- a/src/store.js +++ b/src/store.js @@ -6,7 +6,8 @@ Vue.use(Vuex) export default new Vuex.Store({ state: { theme: 'light', - iconActive: 'search' + iconActive: 'search', + video: {} }, getters: { getTheme: state => { @@ -14,6 +15,9 @@ export default new Vuex.Store({ }, getIconActive: state => { return state.iconActive + }, + getVideo: state => { + return state.video } }, mutations: { @@ -22,9 +26,14 @@ export default new Vuex.Store({ }, SET_ICON_ACTIVE: (state, payload) => { state.iconActive = payload + }, + SET_VIDEO: (state, payload) => { + state.video = payload } }, actions: { - + addCollection: (payload) => { + localStorage.collection = payload + } } }) diff --git a/src/views/Player.vue b/src/views/Player.vue index f16dea7..a39a6dd 100644 --- a/src/views/Player.vue +++ b/src/views/Player.vue @@ -1,8 +1,13 @@ diff --git a/src/views/Search.vue b/src/views/Search.vue index 578d0fc..13be5a5 100644 --- a/src/views/Search.vue +++ b/src/views/Search.vue @@ -5,10 +5,10 @@
-