feat: 添加自定义头部 HTML 配置以支持外部脚本

This commit is contained in:
2026-02-26 16:30:07 +08:00
parent f29a5401ed
commit 756e3fee71
2 changed files with 8 additions and 0 deletions

View File

@@ -1,4 +1,6 @@
<template>
<!-- eslint-disable-next-line vue/no-v-html -->
<div v-if="contact?.customHtml" v-html="customHeaderHtml" />
<div class="app-shell" :style="backgroundStyle">
<div class="background-overlay" :style="overlayStyle" />
<button
@@ -34,6 +36,7 @@ import FooterSection from "~/components/FooterSection.vue";
import MusicPlayer from "~/components/MusicPlayer.vue";
import siteConfig from "~/config/siteConfig";
const customHeaderHtml = siteConfig.header.customHtml;
const contact = siteConfig.footer;
const bg = siteConfig.appearance.background;
const isMobile = ref(false);

View File

@@ -192,6 +192,11 @@ const siteConfig = {
},
},
header: {
customHtml:
'<script charset="UTF-8" id="MXA_COLLECT" src="//mxana.tacool.com/sdk.js"></script>\n<script>MXA.init({ id: "c2-sNzz1Cx4" })</script>',
},
footer: {
beian: "津ICP备2025039003号-1",
beianLink: "https://beian.miit.gov.cn/",