update:消息提示

This commit is contained in:
lan
2023-08-15 00:16:26 +08:00
parent 3a82542118
commit 405ca31727
52 changed files with 255 additions and 61 deletions
+34
View File
@@ -0,0 +1,34 @@
<template>
<el-container style="height: 100vh;width: 100vw;position: relative;user-select: none">
<el-header>
<el-menu mode="horizontal" router default-active="/admin">
<el-menu-item v-for="menu in menus" :index="menu.path" :key="menu.path">{{menu.name}}</el-menu-item>
</el-menu>
</el-header>
<el-main>
<router-view/>
</el-main>
</el-container>
</template>
<script setup lang="ts">
import { useDark } from '@vueuse/core';
import { ref } from "vue";
const isDark = useDark()
const menus = ref([
{
name: '文件管理',
path: '/admin',
},
{
name: '系统设置',
path: '/admin/setting',
},
{
name: '关于我们',
path: '/admin/about',
}
]);
console.log(isDark.value);
</script>
<style lang="scss" scoped>
</style>