国际化

This commit is contained in:
John
2024-03-09 00:45:48 +08:00
parent c595061dc8
commit 80dbf50d4b
28 changed files with 745 additions and 291 deletions

View File

@@ -2,7 +2,7 @@
<div>
<j-nav-bar />
<div class="contract" v-if="contractHtml" v-html="contractHtml"></div>
<div v-else class="noData">暂无合同</div>
<div v-else class="noData">{{ $t('app.none') + $t('app.contract') }}</div>
</div>
</template>
@@ -11,8 +11,10 @@ import {onMounted, ref} from 'vue'
import {getContract} from "@/api";
import {showToast} from "vant";
import {useRoute} from "vue-router";
import { useI18n } from 'vue-i18n';
const route = useRoute()
const { t } = useI18n()
const contractHtml = ref('')
@@ -24,7 +26,7 @@ const _getContract = () => {
contractHtml.value = res
})
} else {
showToast('暂无合同')
showToast(t('app.none') + t('app.contract'))
}
}