docs: 重写 README(原为 Notice 前端副本)+ 修正 context-path 注释
build / build (push) Successful in 4m51s

- README.md 整篇是通知公告前端的副本(标题「通知公告前端」、/notice/* 路由表、
  src/assets/mock/noticeapi.ts、NoticeUpload.vue、VITE_SERVICE_HOST=.../notice 等
  本仓不存在的文件),仓库唯一人类可读文档描述的是另一个应用 → 按本仓实际代码重写:
  启动/脚本/运行期配置优先级、路由与 modId 契约、目录要点、表单 schema 契约纪律
  (行不可变→已发布版本保存不传 id)、CI 构建发布链路、验收口径(vue-tsc 不可用)
- host.config.ts:注释里残留「base/prod /notice」,本应用 context-path 是 /svc-hall
This commit is contained in:
chenxing
2026-09-16 22:24:04 +08:00
parent 1810c6a560
commit 6d972fe0cc
2 changed files with 63 additions and 38 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ import { BaseConf } from "@/types/Basics";
const env = import.meta.env;
// ③ 同域推导兜底:context 段取当前路径首段(/{contextPath}/front/ → contextPath,即后端上下文),
// 与服务端 context-path 对齐(本地无、base/prod /notice);本地 dev/mock 在根路径运行(无段),
// 与服务端 context-path 对齐(本地无、base/prod 为 /svc-hall);本地 dev/mock 在根路径运行(无段),
// serviceHost 留空走 vite 同源代理(规避 CAS 过滤器不回 CORS 头)
const seg = window.location.pathname.split("/").filter(Boolean);
const origin = window.location.origin;