From c878ad56998f385165e58f4028dd811e35e6e3df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Tue, 10 Mar 2026 18:10:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A4=9A=E8=AF=AD=E8=A8=80?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/plugins/video/components/comment-info.vue | 6 ++---- pages/plugins/video/detail/detail.nvue | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/pages/plugins/video/components/comment-info.vue b/pages/plugins/video/components/comment-info.vue index 45d5e150..066369fb 100644 --- a/pages/plugins/video/components/comment-info.vue +++ b/pages/plugins/video/components/comment-info.vue @@ -51,10 +51,8 @@ const dom = weex.requireModule('dom'); // nvue页面在方法中使用时的处理 import { initVueI18n } from '@dcloudio/uni-i18n'; - import en from '@/locale/en.json' - import zhHans from '@/locale/zh.json' - const messages = { en, 'zh-Hans': zhHans } - const { t } = initVueI18n(messages) + import indexNvue from '@/locale/index-nvue.js'; + const { t } = initVueI18n(indexNvue) //#endif import { isEmpty } from '@/common/js/common/common.js'; export default { diff --git a/pages/plugins/video/detail/detail.nvue b/pages/plugins/video/detail/detail.nvue index 36f87acf..ddf9986d 100644 --- a/pages/plugins/video/detail/detail.nvue +++ b/pages/plugins/video/detail/detail.nvue @@ -245,10 +245,8 @@ import i18n from '@/locale/index.js'; // nvue页面在方法中使用时的处理 import { initVueI18n } from '@dcloudio/uni-i18n'; - import en from '@/locale/en.json' - import zhHans from '@/locale/zh.json' - const messages = { en, 'zh-Hans': zhHans } - const { t } = initVueI18n(messages) + import indexNvue from '@/locale/index-nvue.js'; + const { t } = initVueI18n(indexNvue) //#endif // 状态栏高度 var bar_height = parseInt(app.globalData.get_system_info('statusBarHeight', 0));