✨(component): 不简化功能的前提下简化代码量
This commit is contained in:
@@ -5,7 +5,6 @@ import { Router } from "vue-router";
|
||||
import LayCode from "./components/LayCode.vue";
|
||||
import Children1 from "./components/Children1.vue";
|
||||
import Children2 from "./components/Children2.vue";
|
||||
import layui from "../../component/src/index";
|
||||
import layer from "../../layer/src/index";
|
||||
import "./assets/css/index.css";
|
||||
|
||||
@@ -17,7 +16,6 @@ export function createApp(): {
|
||||
const router = createRouter();
|
||||
|
||||
app
|
||||
.use(layui)
|
||||
.use(layer)
|
||||
.use(router)
|
||||
.component("LayCode", LayCode)
|
||||
|
||||
@@ -3,30 +3,15 @@ import BaseLayout from "../layouts/Layout.vue";
|
||||
const zhCN = [
|
||||
{
|
||||
path: "/",
|
||||
redirect: "/zh-CN/index",
|
||||
redirect: "/zh-CN/demo",
|
||||
component: BaseLayout,
|
||||
meta: { title: "首页" },
|
||||
children: [
|
||||
{
|
||||
path: "/zh-CN/index",
|
||||
component: () => import("../document/zh-CN/index.md"),
|
||||
meta: { title: "入门" },
|
||||
},
|
||||
{
|
||||
path: "/zh-CN/demo",
|
||||
component: () => import("../document/zh-CN/demo.md"),
|
||||
meta: { title: "示例" },
|
||||
},
|
||||
{
|
||||
path: "/zh-CN/help",
|
||||
component: () => import("../document/zh-CN/help.md"),
|
||||
meta: { title: "帮助" },
|
||||
},
|
||||
{
|
||||
path: "/zh-CN/question",
|
||||
component: () => import("../document/zh-CN/question.md"),
|
||||
meta: { title: "问题" },
|
||||
},
|
||||
}
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user