Commit 99251ea0 by liimin

修改登录过期时间为30分钟

1 parent b9bd5d01
...@@ -92,7 +92,6 @@ export default { ...@@ -92,7 +92,6 @@ export default {
if (valid) { if (valid) {
const { userId, oldPassword, newPassword } = this.info const { userId, oldPassword, newPassword } = this.info
const result = await ModifyPassword({ userId, oldPassword, newPassword }) const result = await ModifyPassword({ userId, oldPassword, newPassword })
console.log(result)
const { operateStatus } = result const { operateStatus } = result
if (operateStatus) { if (operateStatus) {
this.emit(true) this.emit(true)
......
...@@ -10,7 +10,7 @@ import { ...@@ -10,7 +10,7 @@ import {
} from '@/common/constants' } from '@/common/constants'
import qs from 'qs' import qs from 'qs'
axios.defaults.withCredentials = true axios.defaults.withCredentials = true
const expiresMinute = 10 const expiresMinute = 30
// 创建一个错误 // 创建一个错误
function errorCreate (msg) { function errorCreate (msg) {
const error = new Error(msg) const error = new Error(msg)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!