保存cookie时先删除cookie

This commit is contained in:
caishi 2021-10-15 10:29:03 +08:00
parent 0903edfd2c
commit afd2cec4f2
1 changed files with 1 additions and 0 deletions

View File

@ -26,6 +26,7 @@ function SystemNotice({system_notification,history}){
// }
// }).catch(error=>{})
// }
cookie.remove('notice_stage');
let inFifteenMinutes = new Date(new Date().getTime() + 24 * 3600 * 1000);//
cookie.save('notice_stage', true,{ expires: inFifteenMinutes });
console.log("cookies:",cookie.load('notice_stage')) ;