From d3b077dd1763a22cc9bf45851b609e6123186c15 Mon Sep 17 00:00:00 2001 From: hxr <1490493387@qq.com> Date: Tue, 18 Jun 2024 08:14:34 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20:memo:=20=E8=B7=AF=E7=94=B1=20name=20?= =?UTF-8?q?=20=E6=B3=A8=E9=87=8A=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index e1d92422..e94bb501 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -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, }, }, {