|
@@ -78,10 +78,18 @@ function load() {
|
|
|
var exp = new Date();
|
|
|
let token = getCookies("token");
|
|
|
exp.setTime(exp.getTime() - 1);
|
|
|
- Cookies.remove(hex_sha1("token"));
|
|
|
- Cookies.remove(hex_sha1("username"));
|
|
|
- Cookies.remove(hex_sha1("systemmodeid"));
|
|
|
- Cookies.remove(hex_sha1("systemid"));
|
|
|
+ Cookies.remove(hex_sha1("token"),{
|
|
|
+ path: COOKIE_PATH
|
|
|
+ });
|
|
|
+ Cookies.remove(hex_sha1("username"),{
|
|
|
+ path: COOKIE_PATH
|
|
|
+ });
|
|
|
+ Cookies.remove(hex_sha1("systemmodeid"),{
|
|
|
+ path: COOKIE_PATH
|
|
|
+ });
|
|
|
+ Cookies.remove(hex_sha1("systemid"),{
|
|
|
+ path: COOKIE_PATH
|
|
|
+ });
|
|
|
window.location.href = SYS_ADDR + "/login/";
|
|
|
}
|
|
|
|
|
@@ -271,9 +279,15 @@ function load() {
|
|
|
}
|
|
|
function enterBigScreen(){
|
|
|
|
|
|
- Cookies.remove(hex_sha1("enterBigScreen"));
|
|
|
- Cookies.remove(hex_sha1("bigScreenPrjId"));
|
|
|
- Cookies.remove(hex_sha1("bigScreenPrjName"));
|
|
|
+ Cookies.remove(hex_sha1("enterBigScreen"),{
|
|
|
+ path: COOKIE_PATH
|
|
|
+ });
|
|
|
+ Cookies.remove(hex_sha1("bigScreenPrjId"),{
|
|
|
+ path: COOKIE_PATH
|
|
|
+ });
|
|
|
+ Cookies.remove(hex_sha1("bigScreenPrjName"),{
|
|
|
+ path: COOKIE_PATH
|
|
|
+ });
|
|
|
$(".enterBigScreen").off('click').on('click', function () {
|
|
|
|
|
|
Cookies.set(hex_sha1("enterBigScreen"), Secret_Key("true", 'encryption'), {
|