From 6ff7f64dc78dd5af4c180fe13a24aeef7581a6ab Mon Sep 17 00:00:00 2001 From: zhaoxiaohao <913652501@qq.com> Date: Wed, 24 Jun 2020 16:53:44 +0800 Subject: [PATCH] 修改 添加用户的功能 --- kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/system/user.html | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/system/user.html b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/system/user.html index bcdfd79..3662c61 100644 --- a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/system/user.html +++ b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/system/user.html @@ -81,7 +81,14 @@ { field: 'enabled', width: 100, sort: true, templet: '#user-tpl-state', title: '状态' }, { fixed: 'right', align: 'center', toolbar: '#user-table-bar', title: '操作', width: 300 } ]], - done:function(){ + done:function(res){ + if(res.code==401){ + config.removeToken(); + layer.msg('登录过期', {icon: 2, time: 1500}, function () { + location.replace('/login.html'); + }, 1000); + return; + } permissionsInput(); } }); -- Gitblit v1.8.0