fix:将zh-cn目录改成zh-CN目录等
This commit is contained in:
parent
2d0a5ad2fb
commit
018db8336d
15
Admin.NET/.vscode/launch.json
vendored
Normal file
15
Admin.NET/.vscode/launch.json
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
// 使用 IntelliSense 了解相关属性。
|
||||
// 悬停以查看现有属性的描述。
|
||||
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "C#: Admin.NET.Web.Entry [Admin.NET.Web.Entry - net9.0]",
|
||||
"type": "dotnet",
|
||||
"request": "launch",
|
||||
"projectPath": "${workspaceFolder}\\Admin.NET.Web.Entry\\Admin.NET.Web.Entry.csproj",
|
||||
"launchConfigurationId": "TargetFramework=net9.0;Admin.NET.Web.Entry"
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -48,13 +48,14 @@
|
||||
<body>
|
||||
<div class="loading-wrapper">
|
||||
<div class="loader"></div>
|
||||
<div class="loading-text">Loading system, may take a while...</div>
|
||||
<div class="loading-text">Loading...</div>
|
||||
</div>
|
||||
<div id="app"></div>
|
||||
<script src="/config.js"></script>
|
||||
<script type="module" src="/src/main.ts"></script>
|
||||
<script>
|
||||
window.addEventListener('load', function() {
|
||||
console.log('load');
|
||||
document.querySelector('.loading-wrapper').classList.add('hide');
|
||||
});
|
||||
</script>
|
||||
|
||||
@ -145,7 +145,7 @@ export const i18n = createI18n({
|
||||
silentFallbackWarn: true,
|
||||
fallbackWarn: false,
|
||||
locale: themeConfig.value.globalI18n,
|
||||
fallbackLocale: enLocale.name,
|
||||
fallbackLocale: "zh-CN",
|
||||
messages,
|
||||
globalInjection: true,
|
||||
});
|
||||
@ -18,9 +18,9 @@
|
||||
</div>
|
||||
<template #dropdown>
|
||||
<el-dropdown-menu>
|
||||
<el-dropdown-item command="zh-cn" :disabled="state.disabledI18n === 'zh-cn'">简体中文</el-dropdown-item>
|
||||
<el-dropdown-item command="zh-CN" :disabled="state.disabledI18n === 'zh-CN'">简体中文</el-dropdown-item>
|
||||
<el-dropdown-item command="en" :disabled="state.disabledI18n === 'en'">English</el-dropdown-item>
|
||||
<el-dropdown-item command="zh-tw" :disabled="state.disabledI18n === 'zh-tw'">繁體中文</el-dropdown-item>
|
||||
<el-dropdown-item command="zh-TW" :disabled="state.disabledI18n === 'zh-TW'">繁體中文</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</template>
|
||||
</el-dropdown>
|
||||
@ -125,10 +125,10 @@ const { themeConfig } = storeToRefs(storesThemeConfig);
|
||||
const searchRef = ref();
|
||||
const onlineUserRef = ref();
|
||||
const changePasswordRef = ref();
|
||||
const upgradeInfoRef = ref();
|
||||
const upgradeInfoRef = ref()
|
||||
const state = reactive({
|
||||
isScreenfull: false,
|
||||
disabledI18n: 'zh-cn',
|
||||
disabledI18n: 'zh-CN',
|
||||
disabledSize: 'large',
|
||||
noticeList: [] as any, // 站内信列表
|
||||
});
|
||||
|
||||
@ -42,4 +42,4 @@ other.elSvg(app);
|
||||
// 注册全局字典组件
|
||||
app.component('GSysDict', sysDict);
|
||||
|
||||
app.use(pinia).use(router).use(ElementPlus).use(setupVXETable).use(i18n).use(VueGridLayout).use(VForm3).use(VueSignaturePad).use(vue3TreeOrg).use(JwChat).mount('#app');
|
||||
app.use(pinia).use(router).use(i18n).use(ElementPlus).use(setupVXETable).use(VueGridLayout).use(VForm3).use(VueSignaturePad).use(vue3TreeOrg).use(JwChat).mount('#app');
|
||||
|
||||
@ -142,8 +142,8 @@ export const useThemeConfig = defineStore('themeConfig', {
|
||||
globalViceTitleMsg: '站在巨人肩膀上的 .NET 通用权限开发框架',
|
||||
// 版权和备案文字
|
||||
copyright: 'Copyright © 2021-Present Admin.NET All rights reserved.',
|
||||
// 默认初始语言,可选值"<zh-cn|en|zh-tw>",默认 zh-cn
|
||||
globalI18n: 'zh-cn',
|
||||
// 默认初始语言,可选值"<zh-CN|en|zh-TW>",默认 zh-CN
|
||||
globalI18n: 'zh-CN',
|
||||
// 默认全局组件大小,可选值"<large|'default'|small>",默认 'large'
|
||||
globalComponentSize: 'small',
|
||||
// 系统 logo 地址
|
||||
|
||||
@ -54,7 +54,7 @@ export function setTagsViewNameI18n(item: any) {
|
||||
let tagsViewName: string = '';
|
||||
const { query, params, meta } = item;
|
||||
// 修复tagsViewName匹配到其他含下列单词的路由
|
||||
const pattern = /^\{("(zh-cn|en|zh-tw)":"[^,]+",?){1,3}}$/;
|
||||
const pattern = /^\{("(zh-CN|en|zh-TW)":"[^,]+",?){1,3}}$/;
|
||||
if (query?.tagsViewName || params?.tagsViewName) {
|
||||
if (pattern.test(query?.tagsViewName) || pattern.test(params?.tagsViewName)) {
|
||||
// 国际化
|
||||
|
||||
Loading…
Reference in New Issue
Block a user