From 0cd424a8f9731375a18ea0f4aff794e3e51d24af Mon Sep 17 00:00:00 2001 From: Nixevol Date: Thu, 9 Jul 2026 15:39:13 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E8=AE=B0=E5=BD=95=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E9=A1=B5=E5=AF=B9=E5=A4=96=E8=AE=BF=E9=97=AE=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E4=B8=89=E8=A1=8C=E6=8F=90=E7=A4=BA=E7=BA=A6=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aidocs/project_context.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aidocs/project_context.md b/aidocs/project_context.md index 6cc1730..2665c07 100644 --- a/aidocs/project_context.md +++ b/aidocs/project_context.md @@ -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。