From acca6a0584135b53cc3c49a225ea2289c5965585 Mon Sep 17 00:00:00 2001 From: Karson Date: Wed, 29 Dec 2021 11:03:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=90=8E=E5=8F=B0=E9=A6=96?= =?UTF-8?q?=E9=A1=B5Cookie=E9=99=90=E5=88=B6path?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/assets/js/backend/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/assets/js/backend/index.js b/public/assets/js/backend/index.js index adc86455..cebf93d7 100755 --- a/public/assets/js/backend/index.js +++ b/public/assets/js/backend/index.js @@ -240,8 +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)); - var path = Fast.api.fixurl('index/index'); - document.cookie = encodeURIComponent(Config.cookie.prefix + name) + "=" + encodeURIComponent(value) + "; " + path + "; expires=" + date.toGMTString(); + var path = Config.moduleurl; + document.cookie = encodeURIComponent(Config.cookie.prefix + name) + "=" + encodeURIComponent(value) + "; path=" + path + "; expires=" + date.toGMTString(); }; var my_skins = [