编写路由代码。

This commit is contained in:
2025-10-23 17:52:01 +08:00
parent fd4275c3a5
commit 7ea8e7ab4d
24 changed files with 1606 additions and 150 deletions

View File

@@ -1,6 +1,12 @@
// eslint-disable-next-line
import { createApp, VueElement } from "vue";
import "./style.css";
import "./assets/css/index.scss";
import "./style.scss";
// 路由
// import { router, hasOnlyChild } from "./router/RouteIndex";
import { router } from "./router/index.ts";
// import App from "./App.vue";
import AppMain from "./AppMain.vue";
@@ -11,6 +17,7 @@ import "element-plus/dist/index.css";
const app = createApp( AppMain );
app.use( ElementPlus );
app.use( router );
app.mount( "#app" );
// eslint-disable-next-line