fix: add file extension for faster resolve

master
kunkka 4 years ago
parent 94e3d61dff
commit fd714a709e

@ -12,7 +12,7 @@ const routes = [
{ {
path: "/", path: "/",
name: "home", name: "home",
component: () => import("@/views/home"), component: () => import("@/views/home.vue"),
meta: { meta: {
keepAlive: true, keepAlive: true,
}, },
@ -20,32 +20,32 @@ const routes = [
{ {
path: "/login", path: "/login",
name: "login", name: "login",
component: () => import("@/views/login"), component: () => import("@/views/login.vue"),
}, },
{ {
path: "/login/username", path: "/login/username",
name: "loginUsername", name: "loginUsername",
component: () => import("@/views/loginUsername"), component: () => import("@/views/loginUsername.vue"),
}, },
{ {
path: "/login/account", path: "/login/account",
name: "loginAccount", name: "loginAccount",
component: () => import("@/views/loginAccount"), component: () => import("@/views/loginAccount.vue"),
}, },
{ {
path: "/playlist/:id", path: "/playlist/:id",
name: "playlist", name: "playlist",
component: () => import("@/views/playlist"), component: () => import("@/views/playlist.vue"),
}, },
{ {
path: "/album/:id", path: "/album/:id",
name: "album", name: "album",
component: () => import("@/views/album"), component: () => import("@/views/album.vue"),
}, },
{ {
path: "/artist/:id", path: "/artist/:id",
name: "artist", name: "artist",
component: () => import("@/views/artist"), component: () => import("@/views/artist.vue"),
meta: { meta: {
keepAlive: true, keepAlive: true,
}, },
@ -53,12 +53,12 @@ const routes = [
{ {
path: "/mv/:id", path: "/mv/:id",
name: "mv", name: "mv",
component: () => import("@/views/mv"), component: () => import("@/views/mv.vue"),
}, },
{ {
path: "/next", path: "/next",
name: "next", name: "next",
component: () => import("@/views/next"), component: () => import("@/views/next.vue"),
meta: { meta: {
keepAlive: true, keepAlive: true,
}, },
@ -66,17 +66,17 @@ const routes = [
{ {
path: "/search", path: "/search",
name: "search", name: "search",
component: () => import("@/views/search"), component: () => import("@/views/search.vue"),
}, },
{ {
path: "/new-album", path: "/new-album",
name: "newAlbum", name: "newAlbum",
component: () => import("@/views/newAlbum"), component: () => import("@/views/newAlbum.vue"),
}, },
{ {
path: "/explore", path: "/explore",
name: "explore", name: "explore",
component: () => import("@/views/explore"), component: () => import("@/views/explore.vue"),
meta: { meta: {
keepAlive: true, keepAlive: true,
}, },
@ -84,7 +84,7 @@ const routes = [
{ {
path: "/library", path: "/library",
name: "library", name: "library",
component: () => import("@/views/library"), component: () => import("@/views/library.vue"),
meta: { meta: {
requireLogin: true, requireLogin: true,
keepAlive: true, keepAlive: true,
@ -93,7 +93,7 @@ const routes = [
{ {
path: "/library/liked-songs", path: "/library/liked-songs",
name: "likedSongs", name: "likedSongs",
component: () => import("@/views/playlist"), component: () => import("@/views/playlist.vue"),
meta: { meta: {
requireLogin: true, requireLogin: true,
}, },
@ -101,7 +101,7 @@ const routes = [
{ {
path: "/settings", path: "/settings",
name: "settings", name: "settings",
component: () => import("@/views/settings"), component: () => import("@/views/settings.vue"),
}, },
]; ];
const router = new VueRouter({ const router = new VueRouter({

Loading…
Cancel
Save