From cc4749faaa9a2bd9660e7b827e46f30a74043028 Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: Thu, 14 Dec 2023 13:10:40 +0800
Subject: [PATCH] 修改样式
---
src/views/components/notice.vue | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/views/components/notice.vue b/src/views/components/notice.vue
index 4d35b5e..e61600e 100644
--- a/src/views/components/notice.vue
+++ b/src/views/components/notice.vue
@@ -4,7 +4,7 @@
<div class="list">
<div v-for="item in state.dataList" @click="openDetails('通知公告',item.id)">
<div>
- <div><img src="src/assets/images/article.png"></div>
+ <div><img :src="articlePng"></div>
<div>{{item.title}}</div>
</div>
<span>
@@ -31,6 +31,7 @@
import { getNotice } from '@/api/home/homePage'
import useUserStore from '@/store/modules/user'
import {ElMessage} from "element-plus";
+import articlePng from "@/assets/images/article.png";
const emit = defineEmits(['openDetails'])
const route = useRoute()
const router = useRouter()
@@ -95,11 +96,11 @@
width: 100%;
display: flex;
justify-content: center;
- margin-top: 170px;
+ margin-top: 160px;
.main-content{
width: 1200px;
- margin: 20px 0;
+ margin: 15px 0;
background: #fff;
border-radius: 4px;
box-shadow: 1px 1px 3px rgba(0,0,0,.04);
@@ -108,7 +109,7 @@
.list{
padding: 15px 0;
- max-height: calc(100vh - 350px);
+ height: calc(100vh - 330px);
overflow-y: auto;
&>div{
--
Gitblit v1.9.2