修复后台首页Cookie限制path

pull/354/MERGE
Karson 2021-12-29 10:46:54 +08:00
parent 41fc1d1b3a
commit 12ea49d937
1 changed files with 2 additions and 1 deletions

View File

@ -240,7 +240,8 @@ define(['jquery', 'bootstrap', 'backend', 'addtabs', 'adminlte', 'form'], functi
var createCookie = function (name, value) {
var date = new Date();
date.setTime(date.getTime() + (365 * 24 * 60 * 60 * 1000));
document.cookie = encodeURIComponent(Config.cookie.prefix + name) + "=" + encodeURIComponent(value) + "; expires=" + date.toGMTString();
var path = Fast.api.fixurl('index/index');
document.cookie = encodeURIComponent(Config.cookie.prefix + name) + "=" + encodeURIComponent(value) + "; " + path + "; expires=" + date.toGMTString();
};
var my_skins = [