31 lines
888 B
JavaScript
31 lines
888 B
JavaScript
import { createRouter, createWebHistory } from 'vue-router'
|
|
import { qiankunWindow } from 'vite-plugin-qiankun/dist/helper'
|
|
|
|
const router = createRouter({
|
|
// history: createWebHistory(import.meta.env.BASE_URL),
|
|
history: createWebHistory(qiankunWindow.__POWERED_BY_QIANKUN__ ? '/qiankunother/' : '/'),
|
|
routes: [
|
|
{
|
|
path: '/',
|
|
name: 'container',
|
|
component: () => import('../views/container/index.vue'),
|
|
},
|
|
{
|
|
path: '/plane',
|
|
name: 'carbin',
|
|
component: () => import('../views/carbin/index.vue'),
|
|
},
|
|
|
|
// {
|
|
// path: '/about',
|
|
// name: 'about',
|
|
// // route level code-splitting
|
|
// // this generates a separate chunk (About.[hash].js) for this route
|
|
// // which is lazy-loaded when the route is visited.
|
|
// component: () => import('../views/AboutView.vue'),
|
|
// },
|
|
],
|
|
})
|
|
|
|
export default router
|