feat: 更新 PrimeVue 配置以支持多语言,移除不必要的代码
All checks were successful
/ build-and-deploy-to-vercel (push) Successful in 1m20s
/ depcheck (push) Successful in 1m49s
/ playwright (push) Successful in 1m59s

This commit is contained in:
严浩
2024-11-25 16:53:41 +08:00
parent 3883fad98d
commit b6854ae632
2 changed files with 9 additions and 15 deletions

View File

@ -1,10 +1,4 @@
<script setup lang="ts">
import { usePrimeVue } from 'primevue/config';
import zhCN from 'primelocale/zh-CN.json';
const primevue = usePrimeVue();
primevue.config.locale = zhCN['zh-CN'];
</script>
<script setup lang="ts"></script>
<template>
<div class="primevue">