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.

46 lines
865 B

import { createRouter, createWebHistory } from 'vue-router'
import HomeIndexView from '../views/home/HomeIndexView'
import KucunIndexView from "../views/kucun/KucunIndexView.vue"
import DinghuoIndexView from "../views/dinghuo/DinghuoIndexView.vue"
import NotFound from '../views/error/NotFound'
const routes = [
{
path:"/",
name: 'home',
redirect:"/home/",
},
{
path: "/home/",
name: 'home_index',
component: HomeIndexView,
},
{
path: "/kucun/",
name: 'kucun_index',
component: KucunIndexView,
},
{
path: "/dinghuo/",
name: 'dinghuo_index',
component: DinghuoIndexView,
},
{
path: "/404/",
name: '404',
component: NotFound,
},
{
path:"/:catchAll(.*)",
redirect: "/404/"
}
]
const router = createRouter({
history: createWebHistory(),
routes
})
export default router