mirror of
https://github.com/fugary/simple-element-plus-template.git
synced 2025-11-12 14:27:49 +00:00
基本国际化处理
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
10
src/stores/globalConfig.js
Normal file
10
src/stores/globalConfig.js
Normal 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 }
|
||||
})
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user