集成 vue-i18n 支持国际化

This commit is contained in:
就眠儀式
2022-02-09 17:40:33 +08:00
parent 4325ca3bff
commit 70d4f66b96
7 changed files with 62 additions and 7 deletions

View File

@@ -1,5 +1,8 @@
<template>
<lay-config-provider :themeVariable="themeVariable">
<lay-config-provider
:locale="locale"
:theme="theme"
:themeVariable="themeVariable">
<lay-layout class="layui-layout-document">
<lay-header
><lay-logo style="box-shadow: 0 0px 2px 0 rgba(0, 0, 0, 0.15)">
@@ -86,14 +89,19 @@ export default {
router.push(menu.path);
};
const locale = "en_US";
const theme = "light";
const themeVariable = {
"--global-primary-color":"red",
"--global-checked-color":"red"
}
return {
menus,
theme,
locale,
themeVariable,
currentPath,
handleClick,