示例#1
0
        public async Task ManageLogout(string UserName)
        {
            AjaxJson _ajv = new();

            _ajv.code = RoleAction.Logout(UserName) ? 0 : 1;
            _ajv.msg  = "成功";//_ajv.code == 1 ? "失败" : "成功";
            await JsonAsync(_ajv);
        }
示例#2
0
        public async Task Logout([ApiVal(Val.Form)] bool IsMenu = false)
        {
            if (IsMenu)
            {
                Menu.Reload();
            }

            RoleAction.Logout(Session, anmininfo);

            AjaxJson _ajv = new()
            {
                code = 0,
                msg  = "退出登录成功!"
            };

            _ajv.SetDataItem("Url", "/Admin/Login");

            await JsonAsync(_ajv);
        }