text: import { createRouter, createWebHashHistory } from 'vue-router'
  import Home from '../views/Home'
  
  const routes = [
    {
      // Document title tag
      // We combine it with defaultDocumentTitle set in `src/main.js` on router.afterEach hook
      meta: {
        title: 'Dashboard'
      },
      path: '/',
      name: 'home',
      component: Home
    },
    {
      meta: {
        title: 'Tables'
      },
      path: '/tables',
      name: 'tables',
      // beforeEnter(to, from, next) {
      //   // Put the full page url including the protocol http(s) below
      //   window.location = "https://preavoid-rev.kit-ai.jp/register"
      // }
      // route level code-splitting
      // this generates a separate chunk (about.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import(/* webpackChunkName: "tables" */ '../views/Tables')
    },
    {
      meta: {
        title: 'FormMain'
      },
      path: '/FormMain',
      name: '/FormMain',
      component: () => import(/* webpackChunkName: "forms" */ '../views/FormMain')
    },
    {
      meta: {
        title: 'Profile'
      },
      path: '/profile',
      name: 'profile',
      component: () => import(/* webpackChunkName: "profile" */ '../views/Profile')
    },
    {
      meta: {
        title: 'Login'
      },
      path: '/login',
      name: 'login',
      component: () => import(/* webpackChunkName: "login" */ '../views/Login')
    }
  ]
  
  const router = createRouter({
    history: createWebHashHistory(),
    routes,
    scrollBehavior (to, from, savedPosition) {
      return savedPosition || { x: 0, y: 0 }
    }
  })
  
  export default router
  