index.js 343 B

1234567891011
  1. import { createRouter, createWebHashHistory } from 'vue-router';
  2. import { systemRoutes } from './route';
  3. import { accessRoutes } from '../utils/permission';
  4. const router = createRouter({
  5. history: createWebHashHistory(),
  6. routes: [...systemRoutes, ...accessRoutes],
  7. scrollBehavior: () => ({ left: 0, top: 0 })
  8. });
  9. export default router;