feat: Element Plus 最新版本国际化和集成i18n插件实现自定义国际化(包括动态路由)

This commit is contained in:
郝先瑞
2022-02-24 00:22:11 +08:00
parent 71cec7be32
commit 966bdf1b6e
10 changed files with 142 additions and 87 deletions

View File

@@ -3,11 +3,6 @@
<div>
<h3 class="drawer-title">系统布局配置</h3>
<div class="drawer-item">
<span>主题色</span>
<theme-picker style="float: right;height: 26px;margin: -3px 8px 0 0;" @change="themeChange"/>
</div>
<div class="drawer-item">
<span>开启 Tags-View</span>
<el-switch v-model="tagsView" class="drawer-switch"/>
@@ -27,11 +22,9 @@
</template>
<script>
import ThemePicker from '@/components/ThemePicker/index.vue'
import {defineComponent, reactive, toRefs, watch} from "vue"
import { useSettingStoreHook } from "@/store/modules/settings";
export default defineComponent({
components: {ThemePicker},
setup() {
const state = reactive({
fixedHeader:useSettingStoreHook().fixedHeader,