feat(web): 全局中文 locale;管理面固定外壳、内容区独立滚动
This commit is contained in:
@@ -1,7 +1,14 @@
|
||||
<script setup lang="ts">
|
||||
// 路由出口——逻辑骨架阶段无装饰
|
||||
// 路由出口 + 全局中文(DatePicker 等默认 en-US,须用 ConfigProvider)
|
||||
import zhCN from "antdv-next/locale/zh_CN";
|
||||
import dayjs from "dayjs";
|
||||
import "dayjs/locale/zh-cn";
|
||||
|
||||
dayjs.locale("zh-cn");
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<router-view />
|
||||
<a-config-provider :locale="zhCN">
|
||||
<router-view />
|
||||
</a-config-provider>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user