修复2个无关紧要的问题

修复前端'javascript:;'跨域报错
修复当前用户角色名不翻译问题
pull/838/head
gsw945 2023-01-29 14:22:36 +08:00
parent 4ca490b4c2
commit 171b8700f1
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@
</div> </div>
<div class="form-right"> <div class="form-right">
<label> <label>
<a href="javascript:;" data-toggle="modal" data-target="#upload-logo-panel"> <a href="#" onclick="return false;" data-toggle="modal" data-target="#upload-logo-panel">
<img src="{{cdnimg .Member.Avatar}}" onerror="this.src='{{cdnimg "static/images/middle.gif"}}'" class="img-circle" alt="{{i18n .Lang "uc.avatar"}}" style="max-width: 120px;max-height: 120px;" id="headimgurl"> <img src="{{cdnimg .Member.Avatar}}" onerror="this.src='{{cdnimg "static/images/middle.gif"}}'" class="img-circle" alt="{{i18n .Lang "uc.avatar"}}" style="max-width: 120px;max-height: 120px;" id="headimgurl">
</a> </a>
</label> </label>

View File

@ -71,7 +71,7 @@
<img src="{{cdnimg .Member.Avatar}}" onerror="this.src='{{cdnimg "/static/images/headimgurl.jpg"}}';" class="img-circle userbar-avatar" alt="{{.Member.Account}}"> <img src="{{cdnimg .Member.Avatar}}" onerror="this.src='{{cdnimg "/static/images/headimgurl.jpg"}}';" class="img-circle userbar-avatar" alt="{{.Member.Account}}">
<div class="userbar-content"> <div class="userbar-content">
<span>{{.Member.Account}}</span> <span>{{.Member.Account}}</span>
<div>{{.Member.RoleName}}</div> <div>{{i18n .Lang .Member.RoleName}}</div>
</div> </div>
<i class="fa fa-chevron-down" aria-hidden="true"></i> <i class="fa fa-chevron-down" aria-hidden="true"></i>
</div> </div>