From 7e8cbf5aaaade0a4b19104edea7935a00a5d2048 Mon Sep 17 00:00:00 2001 From: wangsiyuan <2392948297@qq.com> Date: Mon, 25 Dec 2023 23:13:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20profile.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/templates/profile.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/templates/profile.html b/app/templates/profile.html index 925494e..2ecf34a 100644 --- a/app/templates/profile.html +++ b/app/templates/profile.html @@ -68,7 +68,8 @@ menuList.empty(); menuItems.forEach(function (item) { - menuList.append('
  • ' + item.name + '
  • '); + var href = item.path || 'javascript:void(0);'; // 提供一个默认值 + menuList.append('
  • ' + item.name + '
  • '); }); layui.element.render('nav', 'test');