Commit c0aabcc2 by 梁建民

token失效时间

parent 2800a3f8
......@@ -275,8 +275,8 @@
if (res.errcode === 0) {
//注入token
Util.setCookie('token', res.data.access_token, 1, cookieHostname);
Util.setCookie('user_id', res.data.user_id, 1, cookieHostname);
Util.setCookie('token', res.data.access_token, 15, cookieHostname);
Util.setCookie('user_id', res.data.user_id, 15, cookieHostname);
window.location.href = home_url;
......@@ -329,8 +329,8 @@
if (res.errcode === 0) {
//注入token
Util.setCookie('token', res.data.access_token, 1, cookieHostname);
Util.setCookie('user_id', res.data.user_id, 1, cookieHostname);
Util.setCookie('token', res.data.access_token, 15, cookieHostname);
Util.setCookie('user_id', res.data.user_id, 15, cookieHostname);
window.location.href = home_url;
......
......@@ -270,8 +270,8 @@
if (res.errcode === 0) {
//注入token
Util.setCookie('token', res.data.access_token, 1, cookieHostname);
Util.setCookie('user_id', res.data.user_id, 1, cookieHostname);
Util.setCookie('token', res.data.access_token, 15, cookieHostname);
Util.setCookie('user_id', res.data.user_id, 15, cookieHostname);
window.location.href = home_url;
......
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 sign in to comment