finish sidebar router push
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user