finish sidebar router push

This commit is contained in:
2025-04-05 20:49:50 +08:00
parent 20d4fa12d8
commit 292c73e757
8 changed files with 102 additions and 69 deletions

View File

@@ -1,15 +1,21 @@
<script setup lang="ts">
import iconMenu from "./assets/menu.svg";
import Sidebar from "./components/Sidebar.vue";
import { useThemeStore } from "./stores/theme";
const theme = useThemeStore();
const items = [
{ id: 1, icon: iconMenu, text: "用户界面", page: "/user" },
{ id: 2, icon: iconMenu, text: "Component Test", page: "/test" },
{ id: 3, icon: iconMenu, text: "Jtag Test", page: "/test/jtag" },
];
</script>
<template>
<div :data-theme="theme.currentTheme">
<header class="relative">
<div class="fixed left-0 top-0 z-50">
<Sidebar />
<Sidebar :items="items" />
</div>
</header>