Skip to content

Commit

Permalink
Import routes dynamically
Browse files Browse the repository at this point in the history
  • Loading branch information
spider-hand committed Jun 24, 2023
1 parent 2d19d8a commit 1e07d5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/router/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";

import HomeView from "@/views/HomeView.vue";
import GameView from "@/views/GameView.vue";
const HomeView = () => import("@/views/HomeView.vue");
const GameView = () => import("@/views/GameView.vue");

const routes: Array<RouteRecordRaw> = [
{
Expand Down

0 comments on commit 1e07d5d

Please sign in to comment.