docs: 📝 路由 name 注释优化

This commit is contained in:
hxr committed 2024-06-18 08:14:34 +08:00
1 parent 7c85a568da
commit d3b077dd17
1 file changed
+3 -3
+3 -3
View File
@@ -32,14 +32,14 @@ export const constantRoutes: RouteRecordRaw[] = [
{
path: "dashboard",
component: () => import("@/views/dashboard/index.vue"),
name: "Dashboard", // 用于 keep-alive, 必须与SFC自动推导或者显示声明的组件name一致
// https://cn.vuejs.org/guide/built-ins/keep-alive.html#include-exclude
// 用于 keep-alive 功能,需要与 SFC 中自动推导或显式声明的组件名称一致
// 参考文档: https://cn.vuejs.org/guide/built-ins/keep-alive.html#include-exclude
name: "Dashboard",
meta: {
title: "dashboard",
icon: "homepage",
affix: true,
keepAlive: true,
alwaysShow: false,
},
},
{