<script lang="ts" setup>
import { ref, computed, getCurrentInstance } from 'vue'
import { onLoad } from '@dcloudio/uni-app'
// 获取当前实例
const { proxy } = getCurrentInstance()
const text = proxy.$t('index.demo')
console.log(text)
</script>
0 个回复