feat:菜单可配置

This commit is contained in:
houjunxiang
2025-11-27 16:12:25 +08:00
parent f3c15b3692
commit 6c86dc0760
46 changed files with 79 additions and 162 deletions

View File

@@ -30,7 +30,7 @@ let props = defineProps({
})
const switchTabs = reactive([
{
pagePath: '/pages/lims/index/index',
pagePath: '/pages/index/index',
iconName: 'home',
text: '首页',
name: 'home'
@@ -42,22 +42,6 @@ const switchTabs = reactive([
name: 'account'
}
])
// const switchTabs = computed(() => {
// return [
// {
// pagePath: '/pages/lims/index/index',
// iconName: 'home',
// text: '首页',
// name: 'home'
// },
// {
// pagePath: '/pages/me/index',
// iconName: 'account',
// text: '我的',
// name: 'account'
// }
// ]
// })
function changeTabIndex(e) {
let pagePath = switchTabs[e].pagePath