| | |
| | | import { |
| | | createRouter, createWebHashHistory, RouteRecordRaw, |
| | | createRouter, createWebHistory, RouteRecordRaw, |
| | | } from 'vue-router' |
| | | import { cancelRequest } from '@/utils/axios' |
| | | |
| | | const routes: Array<RouteRecordRaw> = [ |
| | | { path: '/', name: 'Home', component: () => import('views/home/index.vue')}, |
| | | { path: '/my', name: 'myMine', component: () => import('views/myMine/index.vue')}, |
| | | { path: '/test', name: 'Test', component: () => import('views/test.vue')} |
| | | ] |
| | | |
| | | const router = createRouter({ |
| | | history: createWebHashHistory(), |
| | | history: createWebHistory(), |
| | | routes, |
| | | }) |
| | | |