import Vue from "vue";
import Vuex from "vuex";


export default new Vuex.Store({
  state: {
    lang: null  // 存放使用者選用的語系
  mutations: {
    // 切換語系設定
    setLang (state, value) {
      state.lang = value;
  actions: {},
  modules: {}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter