mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-04-05 20:17:53 +08:00
Fixed cannot display avatars when deployed to subdirectories
This commit is contained in:
parent
3aa703d479
commit
2e5f0ee8f2
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user