From 1feec7655c73f66cbe462a85f16355a7d04e1145 Mon Sep 17 00:00:00 2001 From: lSun <15893999301@qq.com> Date: Fri, 16 Aug 2024 11:19:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0token?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hxy-web/html/wireManager/project/projectList.html | 2 +- hxy-web/js/public/jq.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hxy-web/html/wireManager/project/projectList.html b/hxy-web/html/wireManager/project/projectList.html index 0fcc9d1..8b0c0aa 100644 --- a/hxy-web/html/wireManager/project/projectList.html +++ b/hxy-web/html/wireManager/project/projectList.html @@ -4,7 +4,7 @@ 工程库 - + diff --git a/hxy-web/js/public/jq.js b/hxy-web/js/public/jq.js index 2afcd54..5979f32 100644 --- a/hxy-web/js/public/jq.js +++ b/hxy-web/js/public/jq.js @@ -1,4 +1,4 @@ -let Authorization = localStorage.getItem("smz-token"); +let Authorization = localStorage.getItem("token"); $.ajaxSetup({ cache : false, @@ -13,7 +13,7 @@ $.ajaxSetup({ if (code == 400) { layer.msg(message); } else if (code == 401) { - localStorage.removeItem("smz-token"); + localStorage.removeItem("token"); location.href = '/login.html'; } else if (code == 403) { console.log("未授权:" + message);