From 5ee34817ff9c554d842a0ef0e4a05a5328e76cbb Mon Sep 17 00:00:00 2001 From: weiwei Date: Wed, 9 Apr 2025 20:32:37 +0800 Subject: [PATCH] 1 --- src/pages/tabbar/my.vue | 10 +++++----- src/pages/test/login.vue | 8 ++------ 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/src/pages/tabbar/my.vue b/src/pages/tabbar/my.vue index 54cb25d..51a9a85 100644 --- a/src/pages/tabbar/my.vue +++ b/src/pages/tabbar/my.vue @@ -349,17 +349,17 @@ const doChangeRole = () => { // 初始化配置菜单 const initMenuConfig = () => { if (isDevEnv()) { + state.menuList.push({ + text: "测试-登录", + icon: "/static/icon/login.png", + router: "/pages/test/login", + }) state.menuList.push({ text: "测试-角色选择", icon: "/static/icon/login.png", router: "/pages/user/userRole", }) } - state.menuList.push({ - text: "测试-登录", - icon: "/static/icon/login.png", - router: "/pages/test/login", - }) // 根据启动参数添加扫一扫菜单项 const launchParam = new URL(window.location.href).searchParams.get("launchParam") diff --git a/src/pages/test/login.vue b/src/pages/test/login.vue index 76df790..5c55052 100644 --- a/src/pages/test/login.vue +++ b/src/pages/test/login.vue @@ -1,11 +1,9 @@