63 lines
2.3 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: favorite.recent.concept
title: 最近打开是什么
type: concept
feature: favorite
scope: end-user
locale: zh
aliases:
- 最近打开
- 最近访问
- 最近浏览
- 最近看过的任务
- 最近用过的文件
- 历史记录
related_tools: []
related_pages: [application]
prerequisites: []
negative:
- 最近打开不可手动添加,全部由系统自动写入
- 不能合并多个设备的访问记录(按账号聚合,但同账号不同端共用)
- 不会无限保留,旧记录会被新访问覆盖 / 清理
last_verified: v1.7.90
---
# 最近打开是什么
## 定义
最近打开由 `UserRecentItem` 模型维护,是系统自动记录的「我最近访问过的对象」。每次打开任务、文件、任务附件、消息附件时自动写入,按 `browsed_at` 倒序展示。它和「我的收藏」(见 [[favorite.concept]])是两套独立机制。
## 支持的对象类型
| target_type | 含义 |
|---|---|
| `task` | 任务(打开任务详情时记录) |
| `file` | 文件柜中的文件 |
| `task_file` | 任务下的附件 |
| `message_file` | 聊天消息中的附件 |
## 来源标记
每条记录还会保存「从哪里进入的」(`source_type` + `source_id`
- `project` — 从项目内进入的任务
- `project_task` — 从任务页打开的任务附件
- `filesystem` — 从文件柜打开
- `dialog` — 从对话打开的消息附件
通过来源可以反向回跳到原入口。
## 与收藏的区别
- **收藏**:用户主动「加星」,长期稳定,本人可见,最多 4 种类型(任务 / 项目 / 文件 / 消息)。详见 [[favorite.concept]]
- **最近打开**:系统自动写入,按浏览时间排序,会被新访问覆盖;不含「项目」和「消息」(消息附件除外)
## 与「任务浏览历史」的关系
任务详情页另有一份 `UserTaskBrowse` 表,专门记录任务粒度的浏览历史,用于「最近浏览过的任务」推荐。「最近打开」是更上层的聚合视图,覆盖任务和文件两类。
## 入口
- 桌面端:左侧栏「应用」→「最近打开」
- 移动端:底部 Tabbar「应用」→「最近打开」
## 操作能力
- 查看:分页浏览、按类型过滤
- 删除单条:列表中点「删除」即可(不会影响原对象)
- 不支持手动添加;不支持永久保留某条