From 8bca3e097850de57e1322771ef3dea82d335573b Mon Sep 17 00:00:00 2001 From: heshunme Date: Tue, 2 Jul 2024 00:34:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E6=A8=A1=E5=9D=97=E4=B8=AD?= =?UTF-8?q?=E5=8E=BB=E9=99=A4=E4=BA=86=E5=B1=80=E9=83=A8=E7=9A=84localStor?= =?UTF-8?q?age=E6=94=AF=E6=8C=81=EF=BC=8C=E4=BF=AE=E6=94=B9=E4=BA=86?= =?UTF-8?q?=E6=B3=A8=E5=86=8C=E9=94=99=E8=AF=AF=E6=8F=90=E7=A4=BA=E6=96=B9?= =?UTF-8?q?=E5=BC=8F=E4=B8=BAMessageBox=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/authentication.js | 7 ------- src/views/authentication/Register.vue | 6 +++--- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/src/store/authentication.js b/src/store/authentication.js index e29434d..ffbf71c 100644 --- a/src/store/authentication.js +++ b/src/store/authentication.js @@ -1,5 +1,4 @@ import axios from 'axios'; -import createPersistedState from 'vuex-persistedstate'; const state = { isAuthenticated: false, @@ -36,12 +35,6 @@ const getters = { token: (state) => state.token, }; -const plugins = [ - createPersistedState({ - storage: window.localStorage, - }), -] - export default { namespaced: true, state, diff --git a/src/views/authentication/Register.vue b/src/views/authentication/Register.vue index 91fead7..0df9493 100644 --- a/src/views/authentication/Register.vue +++ b/src/views/authentication/Register.vue @@ -1,6 +1,6 @@