Skip to content

Commit d60269c

Browse files
authored
Feature/explain (#173):optimize(user&about): optimize some logic
* optimize(user): default avatar; * optimize(user&about): optimize some logic
1 parent c1e8945 commit d60269c

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

src/assets/img/about/icon.png

1.46 KB
Loading

src/components/layout/User.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="user">
3-
<el-dropdown trigger="click">
3+
<el-dropdown>
44
<span class="el-dropdown-link">
55
<div class="nav-avatar">
66
<img :src="user.avatar || defaultAvatar" alt="头像">
@@ -152,7 +152,6 @@ export default {
152152
return {
153153
nickname: null,
154154
dialogFormVisible: false,
155-
defaultAvatar,
156155
form: {
157156
old_password: '',
158157
new_password: '',
@@ -182,7 +181,7 @@ export default {
182181
croppa: {},
183182
imgInfo: null,
184183
quality: 1,
185-
defaultAvarta,
184+
defaultAvatar,
186185
}
187186
},
188187
computed: {

src/views/about/About.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
</div>
6969
</div>
7070
<div class="quantity-icon">
71-
<img src="../../assets/img/about/icon1.png" alt="">
71+
<img src="../../assets/img/about/icon.png" alt="">
7272
</div>
7373
</div>
7474
<div class="quantity-item">
@@ -80,7 +80,7 @@
8080
</div>
8181
</div>
8282
<div class="quantity-icon">
83-
<img src="../../assets/img/about/icon2.png" alt="">
83+
<img src="../../assets/img/about/icon.png" alt="">
8484
</div>
8585
</div>
8686
<div class="quantity-item">
@@ -92,7 +92,7 @@
9292
</div>
9393
</div>
9494
<div class="quantity-icon">
95-
<img src="../../assets/img/about/icon3.png" alt="">
95+
<img src="../../assets/img/about/icon.png" alt="">
9696
</div>
9797
</div>
9898
<div class="quantity-item">
@@ -104,7 +104,7 @@
104104
</div>
105105
</div>
106106
<div class="quantity-icon">
107-
<img src="../../assets/img/about/icon4.png" alt="">
107+
<img src="../../assets/img/about/icon.png" alt="">
108108
</div>
109109
</div>
110110
</div>
@@ -289,7 +289,7 @@ export default {
289289
width: 14px;
290290
height: 14px;
291291
border-radius: 14px;
292-
background-color: #DCE7FF;
292+
background-color: #fff;
293293
transform: translateY(2px);
294294
295295
.team-shadow {
@@ -408,8 +408,8 @@ export default {
408408
border-top-right-radius: 8px;
409409
border-bottom-right-radius: 8px;
410410
img {
411-
width: 48px;
412-
height: 48px;
411+
width: 28px;
412+
height: 33px;
413413
}
414414
}
415415
}

0 commit comments

Comments
 (0)