feat:菜单可配置
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user