Fixed cannot display avatars when deployed to subdirectories

This commit is contained in:
泷涯 2018-09-26 18:27:56 +08:00 committed by GitHub
parent 3aa703d479
commit 2e5f0ee8f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,7 @@
<div class="form-right"> <div class="form-right">
<label> <label>
<a href="javascript:;" data-toggle="modal" data-target="#upload-logo-panel"> <a href="javascript:;" data-toggle="modal" data-target="#upload-logo-panel">
<img src="{{.Member.Avatar}}" onerror="this.src='/static/images/middle.gif'" class="img-circle" alt="头像" 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="头像" style="max-width: 120px;max-height: 120px;" id="headimgurl">
</a> </a>
</label> </label>
</div> </div>
@ -227,4 +227,4 @@
}); });
</script> </script>
</body> </body>
</html> </html>