index.ts 423 B

1234567891011121314
  1. import { createRouter, createWebHashHistory } from 'vue-router';
  2. import 'nprogress/nprogress.css';
  3. /**
  4. * 创建一个可以被 Vue 应用程序使用的路由实例
  5. * @method createRouter(options: RouterOptions): Router
  6. * @link 参考:https://next.router.vuejs.org/zh/api/#createrouter
  7. */
  8. export const router = createRouter({
  9. history: createWebHashHistory(),
  10. routes: [],
  11. });
  12. // 导出路由
  13. export default router;