From eef89d9ef12e37798cfde3b8f3fa00519653192a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=A8=E6=A0=88=E5=B0=8F=E5=AD=A6=E7=94=9F?= <1518079521@qq.com> Date: Wed, 11 Jun 2025 09:22:22 +0800 Subject: [PATCH] Update tabbar.tpl --- niucloud/public/static/tpl/tabbar.tpl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/niucloud/public/static/tpl/tabbar.tpl b/niucloud/public/static/tpl/tabbar.tpl index 8ea2fd9fe..4b6be025e 100644 --- a/niucloud/public/static/tpl/tabbar.tpl +++ b/niucloud/public/static/tpl/tabbar.tpl @@ -42,6 +42,7 @@ import en from '@/locale/en.json' import {onPageScroll} from "@dcloudio/uni-app"; import TopTabbar from "@/components/top-tabbar/top-tabbar.vue"; + import { language } from '@/locale' {foreach $tabbarList as $item} import {$item.name} from "@{$item.link}" @@ -117,6 +118,10 @@ import {$item.name} from "@{$item.link}" if (!loadRecord.value.includes(systemStore.currTabbar.path)) loadRecord.value.push(systemStore.currTabbar.path) if (pagesRefs.value[systemStore.currTabbar.path] && pagesRefs.value[systemStore.currTabbar.path].$) { + // #ifdef MP + systemStore.currTabbar.path.indexOf('addon') != -1 && language.loadAllLocaleMessages('addon', uni.getLocale()) + // #endif + // 执行页面onshow onload事件 pagesRefs.value[systemStore.currTabbar.path].$.root.onLoad.forEach(el => { el(systemStore.currTabbar.query || {})