feat(article detail): add back-to-top button and scroll mixin

add the to-top component and integrate scroll mixin to support scroll-to-top functionality
This commit is contained in:
2026-07-16 14:10:52 +08:00
parent 29e96a9357
commit 4116bfcbb0

View File

@@ -19,12 +19,15 @@
<!-- 隐私弹窗 -->
<privacy-popup ref="privacyPopup"></privacy-popup>
<to-top v-if="showTop" @toTop="scrollToTopNative()"></to-top>
</view>
</template>
<script>
import htmlParser from '@/common/js/html-parser';
import scroll from '@/common/js/scroll-view.js';
export default {
mixins: [scroll],
data() {
return {
articleId: 0,