/*
 * @Author: zuolingling zuolingling@jsnangao.com
 * @Date: 2023-08-11 14:37:08
 * @LastEditors: zuolingling zuolingling@jsnangao.com
 * @LastEditTime: 2023-08-11 16:37:22
 * @FilePath: \vue3portal\src\store.js
 * @Description: 
 * 
 * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. 
 */
import { createStore } from 'vuex'
import { useRoute, useRouter } from "vue-router";
import router from '@/router.js'
import { CHANGE_USER } from './mutation-types'

export default createStore({
  state: {
    lang: "en",
    currentUser: {}
  },
  mutations: {
    [CHANGE_USER](state, payload) {
      state.currentUser = payload.currentUser;
    }
  },
  actions: {
  },
  getters: {
  },
  modules: {
  }
})