hwh
2025-01-14 985769440efe30cca462da4f08254001bf9db952
登录后页面显示调整
2个文件已修改
5 ■■■■ 已修改文件
Pda/View/login.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Pda/js/public.js 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Pda/View/login.html
@@ -200,7 +200,7 @@
                                icon: 1,
                                time: 500 //2秒关闭(如果不配置,默认是3秒)
                            }, function () {
                                $.cookie('token', res.data);
                                $.cookie('token', res.data,{ path: '/' });
                                //回调
                                location.href="/View/index.html";
                            });
Pda/js/public.js
@@ -132,6 +132,9 @@
}
function isTokenExpired(token) {
    if(token==undefined||token==''){
        return true;
    }
    const tokenParts = token.split('.');
    if (tokenParts.length !== 3) {
      return true; // JWT 格式不正确