chore: 添加环境变量配置,集成自动导入和组件插件,重构路由和组件

This commit is contained in:
2025-12-11 16:30:45 +07:00
parent d2b796e434
commit 6b5d522bc6
13 changed files with 308 additions and 13 deletions

View File

@@ -1,6 +1,6 @@
import type { RouteRecordRaw } from "vue-router";
import { createRouter, createWebHistory } from "@ionic/vue-router";
import Layout from "@/components/layout/default.vue";
import LayoutDefault from "@/components/layout/default.vue";
const routes: Array<RouteRecordRaw> = [
{
@@ -9,12 +9,9 @@ const routes: Array<RouteRecordRaw> = [
},
{
path: "/layout/",
component: Layout,
component: LayoutDefault,
redirect: "/layout/home",
children: [
{
path: "",
redirect: "/layout/home",
},
{
path: "home",
component: () => import("@/views/home/index.vue"),