网站首页
编程语言
数据库
系统相关
其他分享
编程问答
setTheme
2024-08-21
VUE主题切换
Vue.use(Vuex)conststore=newVuex.Store({ state:{ "theme":"theme-red", }, mutations:{ setTheme(state,theme){ state.theme=theme }, }, actions:{ setTheme:({ commit, state },theme)=>{ //获取主题配