Skip to content

Commit fda0854

Browse files
committed
文章增加返回按钮
1 parent 8449e1d commit fda0854

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

resources/views/documents/articles/show.blade.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@
182182
183183
.copy-btn {
184184
position: absolute;
185-
top: 0px;
185+
top: 6px;
186186
right: 5px;
187187
display: none;
188188
padding: 5px 10px;
@@ -381,6 +381,8 @@
381381
<button onclick="goToPreviousArticle()">上一文章</button>
382382
<button onclick="goToNextArticle()">下一文章</button>
383383
<button onclick="scrollToTop()">返回顶部</button>
384+
<button onclick="location.href='{{ url('/') }}'">返回主页</button>
385+
<button onclick="location.href='{{ url('/documents/' . $document->slug) }}'">返回文档展示页</button>
384386
</div>
385387

386388
<script src="{{ asset('js/jquery.min.js') }}"></script>

0 commit comments

Comments
 (0)