feat: add default article image
This commit is contained in:
BIN
src/assets/backend.jpg
Normal file
BIN
src/assets/backend.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 244 KiB |
@@ -40,6 +40,16 @@
|
||||
max-width: 130px;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.newspic img{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.articlespic img{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.newscontent, .articlescontent{
|
||||
margin-right: auto;
|
||||
display: inline-block;
|
||||
|
||||
@@ -22,7 +22,8 @@
|
||||
<el-col :span="24" style="height: 100%;">
|
||||
<div class="articles" v-for="item in filteredArticles" @click="openDetails(item)">
|
||||
<div class="articlespic">
|
||||
<img :src="item.pic" alt="芜湖" />
|
||||
<!-- <img :src="item.pic" alt="芜湖" /> -->
|
||||
<img src="@/assets/backend.jpg" alt="芜湖">
|
||||
</div>
|
||||
<div class="articlescontent">
|
||||
<h2>{{ item.title }}</h2>
|
||||
|
||||
@@ -22,7 +22,8 @@
|
||||
<el-col :span="24" style="height: 100%;">
|
||||
<div class="news" v-for="item in filteredNews" @click="openDetails(item)">
|
||||
<div class="newspic">
|
||||
<img :src="item.pic" alt="芜湖" />
|
||||
<!-- <img :src="item.pic" alt="芜湖" /> -->
|
||||
<img src="@/assets/backend.jpg" alt="芜湖">
|
||||
</div>
|
||||
<div class="newscontent">
|
||||
<h2>{{ item.title }}</h2>
|
||||
@@ -62,7 +63,7 @@ const details = viewDetailsStore()
|
||||
|
||||
const router = useRouter()
|
||||
|
||||
const dialogVisible = ref(true);
|
||||
const dialogVisible = ref(false);
|
||||
|
||||
const search_text = ref('')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user