# 支持保持登录会话，Halo 2.16.0 发布

原文：<https://www.halo.run/archives/halo-2.16-released>

Halo 是一款强大易用的开源建站工具，它让你无需太多的技术知识就可以快速搭建一个博客、网站或者内容管理系统。具备可插拔架构、主题套用、富文本编辑器等多重特性，支持用户根据自己的喜好选择不同类型的插件及主题模板来定制化自己的站点功能及外观。让内容创作和发布更加便捷生动。

截至目前（2024 年 Q1 季度），Halo 已经在 Docker Hub 获得了超过 210 万次下载，GitHub Star 数突破 31 k，并拥有一百多名社区贡献者。

2024 年 06 月 03 日，强大易用的开源建站工具 Halo 正式发布 2.16.0 版本。

在这个版本中，Halo 主要新增了保持登录会话的功能，以及其他 30 多项功能优化和问题修复。

## **亮点更新**

### 保持登录会话

在之前的版本中，因为在登录的时候不支持保持登录会话的选项，所以在日常使用中可能会经常需要重新登录。在这个版本中，你可以在登录时勾选 **保持登录会话** 的选项，然后默认在未来的 14 天内都不需要再重新登录。但需要注意，出于安全考虑，不建议在公共设备上勾选此选项。

![2.16.0-remember-me.png](https://www.halo.run/upload/2.16.0-remember-me.png)

### 文章定时发布

在 2.16.0 版本中，我们引入了文章定时发布的功能，现在你可以将 **发表时间** 设置为一个未来的时间，然后这篇文章就会在这个时间达到之后发布。

![2.16.0-scheduled-publish.png](https://www.halo.run/upload/2.16.0-scheduled-publish.png)

## **完整更新日志**

### 新特性

-   新增文章定时发布功能。 by [@guqing](https://github.com/guqing) in [#5940](https://github.com/halo-dev/halo/pull/5940)
    
-   为登录增加保持登录会话机制以优化登录体验。 by [@guqing](https://github.com/guqing) in [#5929](https://github.com/halo-dev/halo/pull/5929)
    
-   附件库支持按文件类型进行过滤。 by [@LIlGG](https://github.com/LIlGG) in [#5893](https://github.com/halo-dev/halo/pull/5893)
    

### 功能优化

-   优化附件分组、存储策略选择组件的 UI。 by [@ruibaby](https://github.com/ruibaby) in [#5996](https://github.com/halo-dev/halo/pull/5996)
    
-   Console 端的插件管理列表支持在地址栏记录筛选条件。 by [@ruibaby](https://github.com/ruibaby) in [#5995](https://github.com/halo-dev/halo/pull/5995)
    
-   优化 Console 文章管理中的文章发布逻辑。 by [@ruibaby](https://github.com/ruibaby) in [#5987](https://github.com/halo-dev/halo/pull/5987)
    
-   优化和角色相关的对话框显示逻辑，减少不必要的渲染开销和请求。 by [@ruibaby](https://github.com/ruibaby) in [#5984](https://github.com/halo-dev/halo/pull/5984)
    
-   优化和用户管理相关的所有对话框显示逻辑，减少不必要的渲染开销和请求。 by [@ruibaby](https://github.com/ruibaby) in [#5975](https://github.com/halo-dev/halo/pull/5975)
    
-   优化页面设置弹窗的显示逻辑，减少不必要的请求。 by [@ruibaby](https://github.com/ruibaby) in [#5968](https://github.com/halo-dev/halo/pull/5968)
    
-   优化附件管理相关代码，减少重复和不必要的请求。 by [@ruibaby](https://github.com/ruibaby) in [#5967](https://github.com/halo-dev/halo/pull/5967)
    
-   优化主题管理弹窗的显示逻辑，减少不必要的请求。 by [@ruibaby](https://github.com/ruibaby) in [#5966](https://github.com/halo-dev/halo/pull/5966)
    
-   优化默认编辑器代码块 Backspace 快捷键逻辑。 by [@LIlGG](https://github.com/LIlGG) in [#5936](https://github.com/halo-dev/halo/pull/5936)
    
-   优化认证方式的排序并支持拖动。 by [@guqing](https://github.com/guqing) in [#5914](https://github.com/halo-dev/halo/pull/5914)
    
-   优化角色详情中的提示组件，移除关闭按钮。 by [@lan-yonghui](https://github.com/lan-yonghui) in [#5909](https://github.com/halo-dev/halo/pull/5909)
    
-   为主题管理增加清理模板引擎缓存的功能。 by [@guqing](https://github.com/guqing) in [#5906](https://github.com/halo-dev/halo/pull/5906)
    
-   邮件通知功能现在只向经过验证的邮箱地址发送通知匿名用户除外。 by [@guqing](https://github.com/guqing) in [#5905](https://github.com/halo-dev/halo/pull/5905)
    
-   管理员回复评论或回复后自动通过审核。 by [@guqing](https://github.com/guqing) in [#5903](https://github.com/halo-dev/halo/pull/5903)
    
-   优化被依赖的插件的升级，启用和禁用。 by [@JohnNiang](https://github.com/JohnNiang) in [#5900](https://github.com/halo-dev/halo/pull/5900)
    
-   在概览页面复制信息时，为主题和插件添加版本号。 by [@ruibaby](https://github.com/ruibaby) in [#6012](https://github.com/halo-dev/halo/pull/6012)
    
-   优化 HTTP 缓存控制。 by [@JohnNiang](https://github.com/JohnNiang) in [#6015](https://github.com/halo-dev/halo/pull/6015)
    

### 问题修复

-   修复在文章版本历史内容预览中代码块颜色显示异常的问题。 by [@ruibaby](https://github.com/ruibaby) in [#5982](https://github.com/halo-dev/halo/pull/5982)
    
-   修复登录成功后立即出现登录失效的问题。 by [@JohnNiang](https://github.com/JohnNiang) in [#5961](https://github.com/halo-dev/halo/pull/5961)
    
-   修复开启 HSTS 可能会导致未开启 HSTS 的子域名站点无法访问的问题。 by [@JohnNiang](https://github.com/JohnNiang) in [#5956](https://github.com/halo-dev/halo/pull/5956)
    
-   修复默认编辑器中列表使用 Backspace 快捷键删除选中文本的错误行为。 by [@LIlGG](https://github.com/LIlGG) in [#5938](https://github.com/halo-dev/halo/pull/5938)
    
-   解决默认编辑器中顶部工具栏菜单溢出后被遮挡的问题。 by [@LIlGG](https://github.com/LIlGG) in [#5930](https://github.com/halo-dev/halo/pull/5930)
    
-   解决默认编辑器中滚动表格时会导致光标变换的问题。 by [@LIlGG](https://github.com/LIlGG) in [#5928](https://github.com/halo-dev/halo/pull/5928)
    
-   修复当 Dialog 标题过长时，提示图标的样式问题。 by [@lan-yonghui](https://github.com/lan-yonghui) in [#5910](https://github.com/halo-dev/halo/pull/5910)
    
-   修复插件定义的权限没有在插件详情页显示的问题。 by [@guqing](https://github.com/guqing) in [#5880](https://github.com/halo-dev/halo/pull/5880)
    
-   解决初始化时无法正常启用插件的问题。 by [@JohnNiang](https://github.com/JohnNiang) in [#5874](https://github.com/halo-dev/halo/pull/5874)
    
-   修复初始化时未按预期删除自定义资源。 by [@guqing](https://github.com/guqing) in [#5859](https://github.com/halo-dev/halo/pull/5859)
    
-   修复因升级应用市场插件导致部分插件意外停止的问题。 by [@JohnNiang](https://github.com/JohnNiang) in [#5855](https://github.com/halo-dev/halo/pull/5855)
    
-   解决默认编辑器中的表格首行合并单元格后会出现宽度重置的问题。 by [@LIlGG](https://github.com/LIlGG) in [#5803](https://github.com/halo-dev/halo/pull/5803)
    
-   修复插件启动成功但仍然可能无法获取扩展点导致页面无法访问的问题。 by [@JohnNiang](https://github.com/JohnNiang) in [#6006](https://github.com/halo-dev/halo/pull/6006)
    

### 开发者相关

-   为插件提供文章内容获取的 Bean。 by [@guqing](https://github.com/guqing) in [#5981](https://github.com/halo-dev/halo/pull/5981)
    
-   为自定义模型 List API 添加默认排序。 by [@guqing](https://github.com/guqing) in [#5937](https://github.com/halo-dev/halo/pull/5937)
    
-   为 VAlert 组件增加标题插槽。 by [@lan-yonghui](https://github.com/lan-yonghui) in [#5911](https://github.com/halo-dev/halo/pull/5911)
    
-   优化 UI 部分的扩展点获取实现，让部分扩展点支持异步获取。 by [@ruibaby](https://github.com/ruibaby) in [#6018](https://github.com/halo-dev/halo/pull/6018)
    

### 依赖更新

-   更新上传库 Uppy 的包依赖。 by [@ruibaby](https://github.com/ruibaby) in [#5997](https://github.com/halo-dev/halo/pull/5997)
    
-   升级 Spring Boot 至 3.3.0。 by [@JohnNiang](https://github.com/JohnNiang) in [#5979](https://github.com/halo-dev/halo/pull/5979)
    
-   升级 Vue 生态的相关依赖至最新版本。 by [@ruibaby](https://github.com/ruibaby) in [#5965](https://github.com/halo-dev/halo/pull/5965)
    
-   升级 pnpm 的版本至 9。 by [@ruibaby](https://github.com/ruibaby) in [#5953](https://github.com/halo-dev/halo/pull/5953)
    
-   升级 Tiptap 依赖至 [2.4.0](https://github.com/ueberdosis/tiptap/releases/tag/v2.4.0)。 by [@ruibaby](https://github.com/ruibaby) in [#5951](https://github.com/halo-dev/halo/pull/5951)
    
-   升级 PF4J 至 3.11.1。 by [@JohnNiang](https://github.com/JohnNiang) in [#5950](https://github.com/halo-dev/halo/pull/5950)
    
-   升级 UI 部分的 Vite 版本至 5.x。 by [@ruibaby](https://github.com/ruibaby) in [#5920](https://github.com/halo-dev/halo/pull/5920)
