|
@@ -1,17 +1,17 @@
|
|
<template>
|
|
<template>
|
|
- <!-- <a-config-provider :locale="locale">
|
|
|
|
- </a-config-provider> -->
|
|
|
|
- <router-view />
|
|
|
|
|
|
+ <a-config-provider :locale="locale">
|
|
|
|
+ <router-view />
|
|
|
|
+ </a-config-provider>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
import { defineComponent, ref } from "vue";
|
|
import { defineComponent, ref } from "vue";
|
|
-// import zhCN from "ant-design-vue/lib/locale-provider/zh_CN";
|
|
|
|
|
|
+import zhCN from "ant-design-vue/lib/locale-provider/zh_CN";
|
|
|
|
|
|
const App = defineComponent({
|
|
const App = defineComponent({
|
|
setup() {
|
|
setup() {
|
|
- // const locale = ref(zhCN);
|
|
|
|
- // return { locale };
|
|
|
|
|
|
+ const locale = ref(zhCN);
|
|
|
|
+ return { locale };
|
|
},
|
|
},
|
|
});
|
|
});
|
|
|
|
|