通过action修改
export const deletAll = function ({commit}) {
commit(types.SET_PLAYLIST, [])
commit(types.SET_SEQUENCE_LIST, [])
commit(types.SET_CURRENT_INDEX, -1)
commit(types.SET_PLAYING_STATE, false)
}
<confirm ref="confirm" @confirm="deleteAll"></confirm>
deleteAll () {
this.deleteAll
this.hide()
},