| | |
| | | import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router' |
| | | import { createRouter, createWebHistory, RouteRecordRaw, createWebHashHistory } from 'vue-router' |
| | | import { ERouterName } from '/@/types/index' |
| | | import CreatePlan from '/@/components/task/CreatePlan.vue' |
| | | import WaylinePanel from '/@/pages/page-web/projects/wayline.vue' |
| | |
| | | const routes: Array<RouteRecordRaw> = [ |
| | | { |
| | | path: '/', |
| | | redirect: '/' + ERouterName.LOGIN |
| | | redirect: '/' + ERouterName.PROJECT_LIST |
| | | }, |
| | | // // 首页 登陆页面 |
| | | { |
| | |
| | | ] |
| | | |
| | | const router = createRouter({ |
| | | history: createWebHistory(import.meta.env.BASE_URL), |
| | | history: createWebHashHistory(import.meta.env.BASE_URL), |
| | | routes |
| | | }) |
| | | |