
- 发布:2025-08-06 20:25
- 更新:2025-08-07 09:48
- 阅读:44
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10
手机系统: 全部
手机厂商: 华为
页面类型: vue
vue版本: vue3
打包方式: 云端
项目创建方式: CLI
CLI版本号: 4.45
测试过的手机:
示例代码:
<template>
<i18n-t
tag="span"
keypath="hopecloud.app.serve.healthConsultation.errorInfo"
>
<template v-slot:day>
<span class="bold-number">
{{ totalNum }}
</span>
</template>
</i18n-t>
</template>
<script setup lang="ts">
const totalNum = 1;
<script>
<template>
<i18n-t
tag="span"
keypath="hopecloud.app.serve.healthConsultation.errorInfo"
>
<template v-slot:day>
<span class="bold-number">
{{ totalNum }}
</span>
</template>
</i18n-t>
</template>
<script setup lang="ts">
const totalNum = 1;
<script>
操作步骤:
看问题描述
看问题描述
预期结果:
预期真机表现和h5一致
预期真机表现和h5一致
实际结果:
h5支持,真机貌似不支持
h5支持,真机貌似不支持
海贼王路飞 (作者)
vue3项目使用vue-i18n插件,并且使用i18n-t组件,在真机上就能复现了
2025-08-07 10:55