基本国际化处理

This commit is contained in:
Gary Fu
2023-12-10 17:29:10 +08:00
parent 337f5aff54
commit ffb209c494
3 changed files with 32 additions and 3 deletions

View File

@@ -1,3 +1,19 @@
#app .el-header{
padding-left: 0;
body, #app .el-header{
padding: 0;
}
body {
margin: 0;
}
html, body, #app, .index-container {
height: 100%;
}
.index-aside {
border-right: solid 1px var(--el-menu-border-color);
}
.index-aside .el-menu {
border-right: 0 none;
}

View File

@@ -0,0 +1,10 @@
import { ref } from 'vue'
import { defineStore } from 'pinia'
export const useGlobalConfigStore = defineStore('globalConfig', () => {
const currentLocale = ref('zh-CN')
const changeLocale = function (locale) {
currentLocale.value = locale
}
return { currentLocale, changeLocale }
})

View File

@@ -17,7 +17,10 @@ const testDay = function () {
<template>
<el-container class="index-container">
<el-aside width="auto">
<el-aside
class="index-aside"
width="auto"
>
<left-menu v-model:collapse-left="collapseLeft" />
</el-aside>
<el-container>