1234567891011121314151617181920 |
- import Vue from 'vue'
- import Vuex from 'vuex'
- Vue.use(Vuex)
- const store = new Vuex.Store({
- state: {
- isLogin: false, // 是否已登录
- },
- mutations: {
- setIsLogin(state, isLogin) {
- state.isLogin = isLogin
- },
- },
- actions: {},
- getters: {},
- })
- export default store
|