From ffb209c494ee54bdb4cdb0e2938be350b3965cd3 Mon Sep 17 00:00:00 2001 From: Gary Fu Date: Sun, 10 Dec 2023 17:29:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E6=9C=AC=E5=9B=BD=E9=99=85=E5=8C=96?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/main.css | 20 ++++++++++++++++++-- src/stores/globalConfig.js | 10 ++++++++++ src/views/HomeView.vue | 5 ++++- 3 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 src/stores/globalConfig.js diff --git a/src/assets/main.css b/src/assets/main.css index c81b7d3..2ba14a5 100644 --- a/src/assets/main.css +++ b/src/assets/main.css @@ -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; } diff --git a/src/stores/globalConfig.js b/src/stores/globalConfig.js new file mode 100644 index 0000000..d252f3d --- /dev/null +++ b/src/stores/globalConfig.js @@ -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 } +}) diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 92bd97f..af69835 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -17,7 +17,10 @@ const testDay = function () {