Add escape button support
This commit is contained in:
parent
17735943d5
commit
e1c3691a72
3 changed files with 15 additions and 6 deletions
|
@ -28,7 +28,6 @@ const mediaViewer = {
|
|||
},
|
||||
setCurrent ({ commit, state }, current) {
|
||||
const index = state.media.indexOf(current)
|
||||
console.log(index, current)
|
||||
commit('setCurrent', index || 0)
|
||||
},
|
||||
closeMediaViewer ({ commit }) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue