06. Vue3搭建后台管理系统

842 字约 2 分钟读完7421 次阅读更新于 2026/5/3

本节课做完后你可以达到这样效果

搭建后台基本框架

配置导航菜单

点击 menu 里面的某一项 跳转页面怎么做?

高亮显示当前展示的路由

可以通过 router.currentRoute.value.path 获取当前展示的路由

:default-active="router.currentRoute.value.path"

图片取色器

https://www.jyshare.com/front-end/6214/#65ae8f

#e6ecf7

主体区域

配置一个 card 卡片样式

.card {
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 8px rgba(0, 0, 0, .12);
}

头像 url:

https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png

本节课源码 Manager.vue

Data.vue