From 4f5e767d60172cfa9865800c55b7256151c98b36 Mon Sep 17 00:00:00 2001 From: Alejandro Akbal <37181533+VoidlessSeven7@users.noreply.github.com> Date: Sun, 28 Feb 2021 10:59:58 +0100 Subject: [PATCH] feat: persist last booru used --- plugins/vuex-persist.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/plugins/vuex-persist.js b/plugins/vuex-persist.js index b58b5f3b..021aabec 100644 --- a/plugins/vuex-persist.js +++ b/plugins/vuex-persist.js @@ -1,6 +1,17 @@ import VuexPersistence from 'vuex-persist' export default ({ store }) => { + // Booru state + new VuexPersistence({ + key: 'booru', + + reducer: (state) => ({ + booru: { + history: state.booru.history, + }, + }), + }).plugin(store) + // Default state new VuexPersistence({ key: 'vuex',