{"size": 352, "ext": "js", "max_stars_repo_path": "store/index.js", "max_stars_repo_name": "torns/FirstUI", "max_stars_repo_stars_event_min_datetime": "2022-02-08T01:04:06.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-08T01:04:06.000Z", "max_issues_repo_path": "store/index.js", "max_issues_repo_name": "torns/FirstUI", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "store/index.js", "max_forks_repo_name": "torns/FirstUI", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 14.6666666667, "max_line_length": 52, "alphanum_fraction": 0.5795454545}
import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
	state: {
		//当前版本
		version: "1.2.0",
		//主题 light、dark
		theme: uni.getStorageSync('fui_theme') || 'light'
	},
	mutations: {
		setTheme(state, theme) {
			state.theme = theme || 'light'
		}
	},
	actions: {

	}
})

export default store
