99
chenyc
2022-09-22 7387b15e920305560553601ef87a3d9da1d7d9dc
src/router/index.ts
@@ -1,15 +1,16 @@
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,
})