diff --git a/src/assets/activeCaixun.png b/src/assets/activeCaixun.png new file mode 100644 index 0000000..df0054f Binary files /dev/null and b/src/assets/activeCaixun.png differ diff --git a/src/assets/caixun.png b/src/assets/caixun.png new file mode 100644 index 0000000..3fad56b Binary files /dev/null and b/src/assets/caixun.png differ diff --git a/src/components/mini/Tabbar.vue b/src/components/mini/Tabbar.vue index c6cea0c..3fd11db 100644 --- a/src/components/mini/Tabbar.vue +++ b/src/components/mini/Tabbar.vue @@ -2,13 +2,13 @@ - + + + 国内资讯 + + + - + - + - + - + @@ -19,14 +32,24 @@ @change="handleMenuChange($event, 'tabbar')" z-index="600" > - + @@ -135,11 +158,17 @@ const setMenuStateConfig = (option: any) => { const __menuStateConfig = Session.get("menuStateConfig"); if (__menuStateConfig) { - const activeObject: any = Object.values(__menuStateConfig).find((item: any) => item.active); + const activeObject: any = Object.values(__menuStateConfig).find( + (item: any) => item.active + ); const activeId = activeObject ? activeObject.id : 0; tabIndex.value = activeId; menuStateConfig.value = __menuStateConfig; - } else if (option?.tabIndex || option?.columnIndex || option?.subColumnIndex) { + } else if ( + option?.tabIndex || + option?.columnIndex || + option?.subColumnIndex + ) { const index = Number(option?.tabIndex) || 0; const columnIndex = Number(option?.columnIndex) || 0; const subColumnIndex = Number(option?.subColumnIndex) || 0;