From d35e50dbddf0ab75aed6d828afac9ea646febac1 Mon Sep 17 00:00:00 2001 From: ruibaby Date: Mon, 2 Mar 2020 13:53:23 +0800 Subject: [PATCH 1/2] 1.3.0-beta.2 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index b91625a7a..a8482fc83 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "halo-admin", - "version": "1.3.0-beta.1", + "version": "1.3.0-beta.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index ce06fdce8..0f78868a2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "halo-admin", - "version": "1.3.0-beta.1", + "version": "1.3.0-beta.2", "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build", From 166d1e1824b7275e1670d2e86e596deb7d9adf24 Mon Sep 17 00:00:00 2001 From: ruibaby Date: Sat, 18 Apr 2020 01:27:07 +0800 Subject: [PATCH 2/2] fix: token expire. --- src/store/modules/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/user.js b/src/store/modules/user.js index e5b3371da..5e086ad2b 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -13,7 +13,7 @@ const user = { }, mutations: { SET_TOKEN: (state, token) => { - Vue.ls.set(ACCESS_TOKEN, token) + Vue.ls.set(ACCESS_TOKEN, token, token ? token.expired_in * 1000 : null) state.token = token }, CLEAR_TOKEN: state => {