Skip to content

Commit

Permalink
Docs: fix footer
Browse files Browse the repository at this point in the history
  • Loading branch information
TRHX committed Dec 7, 2023
1 parent cbef3e4 commit 4b57f02
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions vdoing/components/Footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,27 @@
<br/>
<br/>
Copyright © 2023 - {{ new Date().getFullYear() }}<a href="https://itbob.cn/" target="_blank"> IT.BOB</a>丨
<span id="sitetime">正在载入网站运行时间...</span>丨
<span ref="sitetime" id="sitetime">正在载入网站运行时间...</span>丨
<!-- <template v-if="footer">
| Copyright © {{ footer.createYear }}-{{ new Date().getFullYear() }}
<span v-html="footer.copyrightInfo"></span>
</template> -->
<span ref="la51-span">
<!-- <script id="LA-DATA-WIDGET" crossorigin="anonymous" charset="UTF-8" src="https://v6-widget.51.la/v6/3FpCxw5JhIELmjz2/quote.js?theme=#666666,#333333,#666666,#007BFF,#FFFFFF,#1690FF,13&f=12&display=0,0,0,1,0,1,0,1"></script> -->
</span>
<!-- <span ref="la51-span">
<script id="LA-DATA-WIDGET" crossorigin="anonymous" charset="UTF-8" src="https://v6-widget.51.la/v6/3FpCxw5JhIELmjz2/quote.js?theme=#666666,#333333,#666666,#007BFF,#FFFFFF,#1690FF,13&f=12&display=0,0,0,1,0,1,0,1"></script>
</span> -->
</div>
</template>

<script>
export default {
mounted() {
const la51SpanElement = this.$refs.la51-span;
const la51SpanElement = this.$refs.sitetime;
if (la51SpanElement) {
const la51scriptElement = document.createElement('script');
la51scriptElement.id = 'LA-DATA-WIDGET'
la51scriptElement.id = 'LA-DATA-WIDGET';
la51scriptElement.src = 'https://v6-widget.51.la/v6/3FpCxw5JhIELmjz2/quote.js?theme=#666666,#333333,#666666,#007BFF,#FFFFFF,#1690FF,13&f=12&display=0,0,0,1,0,1,0,1';
la51SpanElement.appendChild(la51scriptElement);
// la51SpanElement.appendChild(la51scriptElement);
la51SpanElement.insertAdjacentElement('afterend', la51scriptElement);
}
},
computed: {
Expand Down

0 comments on commit 4b57f02

Please sign in to comment.