Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
SHR
/
tFIMS
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 99251ea0
authored
Sep 09, 2019
by
liimin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改登录过期时间为30分钟
1 parent
b9bd5d01
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
2 deletions
src/layout/header-aside/components/personal-panel/passwordDialog.vue
src/plugin/axios/index.js
src/layout/header-aside/components/personal-panel/passwordDialog.vue
View file @
99251ea
...
@@ -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
)
...
...
src/plugin/axios/index.js
View file @
99251ea
...
@@ -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
=
1
0
const
expiresMinute
=
3
0
// 创建一个错误
// 创建一个错误
function
errorCreate
(
msg
)
{
function
errorCreate
(
msg
)
{
const
error
=
new
Error
(
msg
)
const
error
=
new
Error
(
msg
)
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment