export const state = () => ({ title: '' }) export const mutations = { setTitle(currentState, title) { currentState.title = title } }