<template>
<view class="uni-content">
<text>{{ i18n.invite }}</text>
<text>{{ i18n.game }}</text>
</view>
</template>
<script>
export default {
computed: {
i18n () {
return this.$t('index')
}
}
}
</script>
<style>
</style>
uniapp 不支持在取值表达式中直接调方法,因此,$t方法不可用,所以通过计算属性的方式