From ef5d28c21618b6fcd3cae08004b15570169dbb0c Mon Sep 17 00:00:00 2001 From: zhanghua <314079846@qq.com> Date: 星期三, 16 十一月 2022 17:50:13 +0800 Subject: [PATCH] 文书模板 --- src/views/layout/components/Header/index.vue | 17 +++++++---------- 1 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/views/layout/components/Header/index.vue b/src/views/layout/components/Header/index.vue index b193bcb..cc861e6 100644 --- a/src/views/layout/components/Header/index.vue +++ b/src/views/layout/components/Header/index.vue @@ -162,7 +162,6 @@ }, created() { this.setLoginInfo() - console.log(this.user) }, methods: { baseInfo() { @@ -200,7 +199,6 @@ sessionStorage.clear(); this.$router.push({ path: "/login" }) }).catch(err => { - console.log(err); }) }, // 鏀瑰彉閫変腑鐘舵�� @@ -217,11 +215,9 @@ async setLoginInfo() { const info = JSON.parse(sessionStorage.getItem('user')); if (info) { - console.log(info) this.user = info; } else { this.user = await this.getLoginInfo(); - console.log(this.user) } this.show = true }, @@ -260,7 +256,7 @@ .header-left { display: flex; - + flex: 1; .menu-left__item { width: 120px; @@ -285,9 +281,10 @@ .header-right { display: flex; - + padding-left: 10vw; + flex: 1; .item { - width: 60px; + width: 100%; position: relative; :deep(.is-fixed) { @@ -302,12 +299,12 @@ } .search { - width: 200px; + flex: 3; } .user { margin-left: 20px; - width: 120px; + flex: 2; display: flex; align-items: center; justify-content: center; @@ -342,7 +339,7 @@ } .btn { - width: 60px; + flex: 1; font-size: 20px; position: relative; -- Gitblit v1.8.0