docs: 📝 路由 name 注释优化

This commit is contained in:
hxr
2024-06-18 08:14:34 +08:00
parent 7c85a568da
commit d3b077dd17

View File

@@ -32,14 +32,14 @@ export const constantRoutes: RouteRecordRaw[] = [
{ {
path: "dashboard", path: "dashboard",
component: () => import("@/views/dashboard/index.vue"), component: () => import("@/views/dashboard/index.vue"),
name: "Dashboard", // 用于 keep-alive, 必须与SFC自动推导或者显示声明的组件name一致 // 用于 keep-alive 功能,需要与 SFC自动推导或显式声明的组件名称一致
// https://cn.vuejs.org/guide/built-ins/keep-alive.html#include-exclude // 参考文档: https://cn.vuejs.org/guide/built-ins/keep-alive.html#include-exclude
name: "Dashboard",
meta: { meta: {
title: "dashboard", title: "dashboard",
icon: "homepage", icon: "homepage",
affix: true, affix: true,
keepAlive: true, keepAlive: true,
alwaysShow: false,
}, },
}, },
{ {