export const state = () => ({ locales: ['en', 'zh'], locale: 'en', footerInfo: {} }) export const mutations = { SET_LANG (state, locale) { if (state.locales.includes(locale)) { state.locale = locale } }, SET_FOOTER_INFO (state, info) { state.footerInfo = info } } export const actions = { }