・外部から直接URLを指定してもmypageで弾く ・mypageに行く前にlocalStorage があるかチェック ?crypt_id がある場合は localStorageにデータを入れる ない場合はログインしてねページへ飛ばす const routes = [ { path: "/mypage", component: Mypage, meta: { requiresAuth: true,title: 'マイページ' } }, ]; //router const router = createRouter({ routes, // short for `routes: routes` history: createWebHistory(), scrollBehavior }) //beforeEach router.beforeEach((to, from, next) => {