feat: 提交校园智能助手前端工程源码(Vue3 + Vite + view-ui-plus)
build / build (push) Successful in 3m14s

This commit is contained in:
lijing
2026-10-12 14:45:00 +08:00
parent 96bb37c89f
commit 37d292c5d2
51 changed files with 13430 additions and 2 deletions
+23
View File
@@ -0,0 +1,23 @@
import { createRouter, createWebHashHistory } from "vue-router";
import type { RouteRecordRaw } from "vue-router";
/**
* 智能助手路由:单页应用,唯一入口为对话页。
* 用 hash 模式:产物部署在 /{contextPath}/front/ 下,无需服务端 rewrite 规则。
*/
const routes: RouteRecordRaw[] = [
{
path: "/",
name: "chat",
component: () => import("@/views/Chat.vue"),
meta: { title: "智能助手" },
},
{ path: "/:pathMatch(.*)*", redirect: "/" },
];
const router = createRouter({
history: createWebHashHistory(),
routes,
});
export default router;