From 61be71674c9373425a9599ad612c3d0832b3d157 Mon Sep 17 00:00:00 2001 From: lyc Date: Wed, 30 Oct 2024 10:00:23 +0800 Subject: [PATCH] 2.5init --- src/renderer/src/App.vue | 1 - src/renderer/src/layout/components/Aside.vue | 32 +++++++++++++------ src/renderer/src/layout/index.vue | 18 +---------- .../views/desktop/container/work-trend.vue | 2 +- src/renderer/src/views/desktop/index.vue | 1 + 5 files changed, 25 insertions(+), 29 deletions(-) diff --git a/src/renderer/src/App.vue b/src/renderer/src/App.vue index 0f33ba6..fe4154b 100644 --- a/src/renderer/src/App.vue +++ b/src/renderer/src/App.vue @@ -18,6 +18,5 @@ const size = ref('default') text-align: center; color: #2c3e50; width: 100%; - /* height: 100vh; */ } diff --git a/src/renderer/src/layout/components/Aside.vue b/src/renderer/src/layout/components/Aside.vue index 0ecd8c2..d2188a0 100644 --- a/src/renderer/src/layout/components/Aside.vue +++ b/src/renderer/src/layout/components/Aside.vue @@ -4,7 +4,10 @@
    @@ -15,7 +18,7 @@
  • 个人中心
  • 班级中心
  • -
  • 退出登录
  • +
  • 退出登录
@@ -57,6 +60,7 @@ import pkc from "../../../../../package.json" const { ipcRenderer } = window.electron || {} const dev_api = ref(import.meta.env.VITE_APP_BASE_API) const userStore = useUserStore() +console.log(userStore,'userStore') const router = useRouter() const currentRoute = ref('') const activeId = ref('/home') @@ -199,11 +203,19 @@ const logout = () => { display: flex; flex-direction: column; justify-content: space-between; - .user-img{ - width: 56px; - height: 56px; - border-radius: 50%; - cursor: pointer; + .user-info{ + display: flex; + flex-direction: column; + color: #fff; + align-items: center; + font-size: 12px; + .user-img{ + width: 56px; + height: 56px; + border-radius: 50%; + cursor: pointer; + margin-bottom: 10px; + } } .aside-tab { @@ -216,12 +228,12 @@ const logout = () => { width: 100%; cursor: pointer; flex-direction: column; - padding: 5px 0; + padding: 8px 0; align-items: center; color: #fff; .text { - font-size: 11px; + font-size: 12px; } .iconfont { @@ -255,6 +267,6 @@ const logout = () => { .verson{ color: #fff; font-size: 12px; - margin-top: 10px; + margin-top: 5px; } \ No newline at end of file diff --git a/src/renderer/src/layout/index.vue b/src/renderer/src/layout/index.vue index 19546a5..9bcf801 100644 --- a/src/renderer/src/layout/index.vue +++ b/src/renderer/src/layout/index.vue @@ -1,14 +1,4 @@