You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
import { createRouter, createWebHistory } from 'vue-router' const routes = [ { path: '/', redirect: 'homePage' }, { path: '/homePage', name: 'homePage', component: () => import('@/views/homePage.vue') }, { path: '/AIchat', name: 'AIchat', component: () => import('@/views/AIchat.vue'), meta: { title: 'AI对话' } }, { path: '/AIfind', name: 'AIfind', component: () => import('@/views/AIfind.vue'), meta: { title: '发现' } }, { path: '/Announcement', name: 'Announcement', component: () => import('@/views/Announcement.vue'), }, { path: '/Feedback', name: 'Feedback', component: () => import('@/views/Feedback.vue'), } ] // 创建路由实例
const router = createRouter({ history: createWebHistory(import.meta.env.VITE_PUBLIC_PATH), routes }) // 导出
export default router
|