router.js 624 Bytes
/*
 * @Date: 2022-05-26 13:57:28
 * @LastEditors: hookehuyr hookehuyr@gmail.com
 * @LastEditTime: 2022-06-29 21:36:59
 * @FilePath: /tswj/src/router.js
 * @Description: 文件描述
 */
import { createRouter, createWebHashHistory } from 'vue-router';
import RootRoute from './route.js';

// 创建路由实例并传递 `routes` 配置
const router = createRouter({
  history: createWebHashHistory('/index.html'),
  routes: [...RootRoute]
});

// router.beforeEach((to, from, next) => {
  // next()
// })

// router.afterEach(() => {
  // console.warn(to);
  // console.warn(wx);
  // share(to)
// })

export default router;