fix loss style for async load
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
import { createRouter, createWebHistory } from "vue-router";
|
||||
import repository from "./repository";
|
||||
import IndexLayout from "@/layout/IndexLayout.vue";
|
||||
import RepositoryList from "@/views/index/RepositoryList.vue";
|
||||
|
||||
export default createRouter({
|
||||
history: createWebHistory("/"),
|
||||
@ -8,12 +10,12 @@ export default createRouter({
|
||||
// 主路由
|
||||
path: "/",
|
||||
name: "IndexLayout",
|
||||
component: () => import("@/layout/IndexLayout.vue"),
|
||||
component: IndexLayout,
|
||||
children: [
|
||||
{
|
||||
path: "/",
|
||||
name: "RepositoryList",
|
||||
component: () => import("@/views/index/RepositoryList.vue")
|
||||
component: RepositoryList
|
||||
},
|
||||
{
|
||||
path: "/log",
|
||||
|
||||
@ -1,7 +1,9 @@
|
||||
import RepositoryLayout from "@/layout/RepositoryLayout.vue";
|
||||
|
||||
export default {
|
||||
path: "/:repository",
|
||||
name: "RepositoryLayout",
|
||||
component: () => import("@/layout/RepositoryLayout.vue"),
|
||||
component: RepositoryLayout,
|
||||
children: [
|
||||
{
|
||||
path: ":branch",
|
||||
|
||||
Reference in New Issue
Block a user