67dac0168f
Co-authored-by: Cursor <cursoragent@cursor.com>
25 lines
1.1 KiB
Markdown
25 lines
1.1 KiB
Markdown
# 2026-06-01 文件管理行点击与自动选服
|
||
|
||
## 日期
|
||
2026-06-01
|
||
|
||
## 变更摘要
|
||
修复 `#/files` 无法进入子目录、打开页无列表等体验问题:Vuetify 4 改用 `row-props` 绑定行点击;进入页自动选中服务器并浏览默认目录。
|
||
|
||
## 动机
|
||
- Vuetify 4 已移除 `v-data-table` 的 `@click:row` / `@dblclick:row` / `@contextmenu:row`,原事件静默失效,单击目录无法进入
|
||
- 未带 `?server_id=` 时不会调用 `browse()`,用户看到空表且多数按钮禁用
|
||
|
||
## 涉及文件
|
||
- `frontend/src/pages/FilesPage.vue` — `fileRowProps`、自动选服、`sessionStorage` 记忆上次服务器
|
||
- `frontend/src/composables/useServerList.ts` — `http.getList` 兼容列表响应
|
||
|
||
## 迁移 / 重启
|
||
- 需重新构建并部署前端至 `web/app/`(建议执行 `deploy/prune_frontend_assets.py`)
|
||
|
||
## 验证方式
|
||
1. 打开 `https://…/app/#/files`(无需 URL 参数)
|
||
2. 应自动选中服务器并列出 `/www/wwwroot`(或站点根)内容
|
||
3. 单击目录行进入子目录;双击普通文件打开编辑器
|
||
4. 右键行弹出上下文菜单
|