从0到2教会你nuxt /
vuex存放
export const state = () => ({ counter: 0 }) export const mutations = { increment (state) { state.counter++ } }
本文章首发在 LearnKu.com 网站上。
我要举报该,理由是: