Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fgqyxxlr
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yaru
fgqyxxlr
Commits
2499685a
Commit
2499685a
authored
Jun 24, 2020
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
如果加载头像时发生了错误,则显示一个默认头像
parent
a3bb6033
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
ruoyi-admin/src/main/resources/templates/index.html
+2
-2
ruoyi-common/src/main/java/com/ruoyi/common/annotation/Excel.java
+1
-1
No files found.
ruoyi-admin/src/main/resources/templates/index.html
View file @
2499685a
...
...
@@ -36,7 +36,7 @@
<a
class=
"menuItem noactive"
title=
"个人中心"
th:href=
"@{/system/user/profile}"
>
<div
class=
"hide"
th:text=
"个人中心"
></div>
<div
class=
"pull-left image"
>
<img
th:src=
"(${user.avatar} == '') ? @{/img/profile.jpg} : @{${user.avatar}}"
class=
"img-circle"
alt=
"User Image"
>
<img
th:src=
"(${user.avatar} == '') ? @{/img/profile.jpg} : @{${user.avatar}}"
th:onerror=
"this.src='img/profile.jpg'"
class=
"img-circle"
alt=
"User Image"
>
</div>
</a>
<div
class=
"pull-left info"
>
...
...
@@ -185,7 +185,7 @@
<li><a
title=
"全屏显示"
href=
"javascript:void(0)"
id=
"fullScreen"
><i
class=
"fa fa-arrows-alt"
></i>
全屏显示
</a></li>
<li
class=
"dropdown user-menu"
>
<a
href=
"javascript:void(0)"
class=
"dropdown-toggle"
data-hover=
"dropdown"
>
<img
th:src=
"(${user.avatar} == '') ? @{/img/profile.jpg} : @{${user.avatar}}"
class=
"user-image"
>
<img
th:src=
"(${user.avatar} == '') ? @{/img/profile.jpg} : @{${user.avatar}}"
th:onerror=
"this.src='img/profile.jpg'"
class=
"user-image"
>
<span
class=
"hidden-xs"
>
[[${#strings.defaultString(user.userName, '-')}]]
</span>
</a>
<ul
class=
"dropdown-menu"
>
...
...
ruoyi-common/src/main/java/com/ruoyi/common/annotation/Excel.java
View file @
2499685a
...
...
@@ -25,7 +25,7 @@ public @interface Excel
public
String
dateFormat
()
default
""
;
/**
* 如果是字典类型,请设置字典的type值
* 如果是字典类型,请设置字典的type值
(如: sys_user_sex)
*/
public
String
dictType
()
default
""
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment