feat: 办事大厅用户面前端(hall)首版入库——由 app/public 改名去 app 层;build.yml 修并发撞名容exit137
build / build (push) Successful in 3m6s
build / build (push) Successful in 3m6s
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
import type { RouteRecordRaw } from "vue-router";
|
||||
|
||||
/**
|
||||
* 公共办事大厅路由(用户面;后台管理路由在 svc-hall/front,两仓互不引用)。
|
||||
* 四个页面:事项大厅(入口)/ 在线办理 / 我的办件 / 办件详情。
|
||||
* 全部走 hash 路由(部署于 /{contextPath}/public/,hash 免服务端 rewrite)。
|
||||
* 参数页用 query 传参(与 CMS 指南页"我要办理"外链形态一致:
|
||||
* {svc_hall_base}/#/apply?siteCode=&itemCode=)——拼成路径参数会 no-match 空白页。
|
||||
*/
|
||||
const routes: RouteRecordRaw[] = [
|
||||
{
|
||||
path: "/hall",
|
||||
name: "hall",
|
||||
component: () => import("@/views/Hall.vue"),
|
||||
meta: { title: "办事大厅" },
|
||||
},
|
||||
{
|
||||
path: "/apply",
|
||||
name: "apply",
|
||||
component: () => import("@/views/Apply.vue"),
|
||||
meta: { title: "在线办理" },
|
||||
},
|
||||
{
|
||||
path: "/my",
|
||||
name: "my",
|
||||
component: () => import("@/views/ApplyMy.vue"),
|
||||
meta: { title: "我的办件" },
|
||||
},
|
||||
{
|
||||
path: "/apply-detail",
|
||||
name: "apply_detail",
|
||||
component: () => import("@/views/ApplyDetail.vue"),
|
||||
meta: { title: "办件详情" },
|
||||
},
|
||||
// 入口默认页 = 事项大厅
|
||||
{ path: "/", redirect: "/hall" },
|
||||
// 外部深链兜底(bizUrl / CMS 按钮可能拼成 /#/apply-detail/12 之类):回落大厅避免白屏
|
||||
{ path: "/:pathMatch(.*)*", redirect: "/hall" },
|
||||
];
|
||||
|
||||
export default routes;
|
||||
Reference in New Issue
Block a user