Commit 59931b45 authored by 赵炳峰's avatar 赵炳峰

master

parent 2ee077a3
...@@ -473,7 +473,9 @@ export default { ...@@ -473,7 +473,9 @@ export default {
.then(res => { .then(res => {
let data = res.data let data = res.data
if (data.Status) { if (data.Status) {
const expireTime = new Date(data.Data.expireTime).getTime()
this.$store.commit('saveToken', data.Data.token) this.$store.commit('saveToken', data.Data.token)
this.$store.commit('saveExpireTime', expireTime)
} }
}).catch(res => { }).catch(res => {
console.log(res) console.log(res)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment