From e947a13b94740f3e5890332145b254a7e144e22f Mon Sep 17 00:00:00 2001 From: icssoa <615206459@qq.com> Date: Tue, 2 Aug 2022 16:35:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/layout/components/route-nav.vue | 2 +- .../demo/views/home/components/hot-search.vue | 18 +++++++++--------- .../demo/views/home/components/sales-rank.vue | 6 ++++++ 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/src/modules/base/layout/components/route-nav.vue b/src/modules/base/layout/components/route-nav.vue index 545881e..5cbe7d4 100644 --- a/src/modules/base/layout/components/route-nav.vue +++ b/src/modules/base/layout/components/route-nav.vue @@ -52,7 +52,7 @@ const list = computed(() => { }); // 最后一个节点名称 -const lastName = computed(() => _.last(list.value).name); +const lastName = computed(() => _.last(list.value)?.name);