保存cookie时先删除cookie
This commit is contained in:
parent
0903edfd2c
commit
afd2cec4f2
|
@ -26,6 +26,7 @@ function SystemNotice({system_notification,history}){
|
||||||
// }
|
// }
|
||||||
// }).catch(error=>{})
|
// }).catch(error=>{})
|
||||||
// }
|
// }
|
||||||
|
cookie.remove('notice_stage');
|
||||||
let inFifteenMinutes = new Date(new Date().getTime() + 24 * 3600 * 1000);//一天
|
let inFifteenMinutes = new Date(new Date().getTime() + 24 * 3600 * 1000);//一天
|
||||||
cookie.save('notice_stage', true,{ expires: inFifteenMinutes });
|
cookie.save('notice_stage', true,{ expires: inFifteenMinutes });
|
||||||
console.log("cookies:",cookie.load('notice_stage')) ;
|
console.log("cookies:",cookie.load('notice_stage')) ;
|
||||||
|
|
Loading…
Reference in New Issue