ãã°ã¤ã³æ å ±ãªã©ããªãã¼ããªã©ããã¦ãæ°¸ç¶çã«vuexã®storeã«å¤ãä¿æãããæã«ä¾¿å©ãªvuex-persistedstate github.com npmã¤ã³ã¹ãã¼ã«ãã npm install --save vuex-persistedstate 以ä¸ã®ããã«å¼ã³åºããã¨ã§å©ç¨ã§ãã ï¼/store/index.jsï¼ import Vue from "vue" import Vuex from "vuex" import createPersistedState from "vuex-persistedstate" Vue.use(Vuex) export default new Vuex.Store({ state: { login: {}, other: {}, }, mutations: {}, actions: {}, getters: {}, modules: {},
{{#tags}}- {{label}}
{{/tags}}