cookie失效时间改为一天

This commit is contained in:
caishi 2021-10-18 17:19:20 +08:00
parent e7a322e038
commit 644e3c3f73
1 changed files with 2 additions and 2 deletions

View File

@ -28,8 +28,8 @@ function SystemNotice({system_notification,history}){
// }
console.log("cookies before:",cookie.load('notice_stage')) ;
cookie.remove('notice_stage');
// let inFifteenMinutes = new Date(new Date().getTime() + 24 * 3600 * 1000);//
let inFifteenMinutes = new Date(new Date().getTime() + 60 * 1000);//
let inFifteenMinutes = new Date(new Date().getTime() + 24 * 3600 * 1000);//
// let inFifteenMinutes = new Date(new Date().getTime() + 60 * 1000);//
cookie.save('notice_stage', true,{ expires: inFifteenMinutes });
console.log("cookies after:",cookie.load('notice_stage')) ;
setVisible(false);