docs: 记录安装页对外访问地址三行提示约定
This commit is contained in:
@@ -269,7 +269,8 @@
|
||||
### apps/admin(Vue3+Vite+Naive UI+Pinia+vue-router hash+vue-i18n+ECharts)
|
||||
- 路由 `router/index.ts`:受限路由用 `meta.roles`(audit=超管/审核;operation-logs/users/settings=超管);`api/index.ts` 汇总所有接口;`api/request.ts` axios 封装(带 Accept-Language、错误码翻译)。
|
||||
- 复用约定:列表用 `composables/useTablePage.ts` + `page table-page` + `n-data-table.table-fill flex-height`(关内置分页、外置 `n-pagination`,`pageSize=0` 不分页);上传用 `MediaUpload.vue`(单/少量)与 `MediaSorter.vue`(多图排序 captionable);`TraceCodePanel.vue` 复用于全局与档案内追溯码管理;`openMediaViewer.ts`=PhotoSwipe(带工具条);`utils/mediaUrl.ts` 规整媒体 URL。
|
||||
- 主要页面 `views/`:Dashboard、Templates、Artworks/ArtworkEdit/ArtworkTraceCodes、TraceCodes、Outbound、Audit、QueryLogs、OperationLogs、Users、Settings、Profile、Login。
|
||||
- 主要页面 `views/`:Dashboard、Templates、Artworks/ArtworkEdit/ArtworkTraceCodes、TraceCodes、Outbound、Audit、QueryLogs、OperationLogs、Users、Settings、Profile、Login、Install(三步向导:基础→数据库→存储)。
|
||||
- 安装页 `baseUrlHint`(中英):三行换行说明对外访问地址(域名 / IP:端口 / 本地默认);`.hint` 使用 `white-space: pre-line` 渲染 `\n`。
|
||||
|
||||
### apps/client(Vue3+Vite 移动优先溯源页)
|
||||
- 入口 `views/Trace.vue`(顶部媒体无缝轮播、防伪横幅、动态字段、时间轴节点媒体默认收缩、水印证书、区块链卡、i18n、暗色变量)+ `Home.vue`;`composables/openMediaViewer.ts`(PhotoSwipe,已弃用旧 MediaViewer.vue);hash 路由 `/trace/:code`,短链 `/t/{code}` 由 API 302。
|
||||
|
||||
Reference in New Issue
Block a user