up
chenyc
2022-09-23 2a6364632f5480a504c3facb4978f14b14136816
src/router/index.ts
@@ -1,15 +1,17 @@
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: '/paiban', name: 'paiban', component: () => import('views/paiban/index.vue')},
    { path: '/test', name: 'Test', component: () => import('views/test.vue')}
]
const router = createRouter({
    history: createWebHashHistory(),
    history: createWebHistory(),
    routes,
})