mirror of https://gitee.com/karson/fastadmin.git
优化后台首页Cookie限制path
parent
12ea49d937
commit
acca6a0584
|
|
@ -240,8 +240,8 @@ define(['jquery', 'bootstrap', 'backend', 'addtabs', 'adminlte', 'form'], functi
|
||||||
var createCookie = function (name, value) {
|
var createCookie = function (name, value) {
|
||||||
var date = new Date();
|
var date = new Date();
|
||||||
date.setTime(date.getTime() + (365 * 24 * 60 * 60 * 1000));
|
date.setTime(date.getTime() + (365 * 24 * 60 * 60 * 1000));
|
||||||
var path = Fast.api.fixurl('index/index');
|
var path = Config.moduleurl;
|
||||||
document.cookie = encodeURIComponent(Config.cookie.prefix + name) + "=" + encodeURIComponent(value) + "; " + path + "; expires=" + date.toGMTString();
|
document.cookie = encodeURIComponent(Config.cookie.prefix + name) + "=" + encodeURIComponent(value) + "; path=" + path + "; expires=" + date.toGMTString();
|
||||||
};
|
};
|
||||||
|
|
||||||
var my_skins = [
|
var my_skins = [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue