mirror of
https://github.com/RhenCloud/Cloud-Home.git
synced 2026-03-10 14:42:39 +08:00
feat: 添加自定义头部 HTML 配置以支持外部脚本
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
<template>
|
<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="app-shell" :style="backgroundStyle">
|
||||||
<div class="background-overlay" :style="overlayStyle" />
|
<div class="background-overlay" :style="overlayStyle" />
|
||||||
<button
|
<button
|
||||||
@@ -34,6 +36,7 @@ import FooterSection from "~/components/FooterSection.vue";
|
|||||||
import MusicPlayer from "~/components/MusicPlayer.vue";
|
import MusicPlayer from "~/components/MusicPlayer.vue";
|
||||||
import siteConfig from "~/config/siteConfig";
|
import siteConfig from "~/config/siteConfig";
|
||||||
|
|
||||||
|
const customHeaderHtml = siteConfig.header.customHtml;
|
||||||
const contact = siteConfig.footer;
|
const contact = siteConfig.footer;
|
||||||
const bg = siteConfig.appearance.background;
|
const bg = siteConfig.appearance.background;
|
||||||
const isMobile = ref(false);
|
const isMobile = ref(false);
|
||||||
|
|||||||
@@ -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: {
|
footer: {
|
||||||
beian: "津ICP备2025039003号-1",
|
beian: "津ICP备2025039003号-1",
|
||||||
beianLink: "https://beian.miit.gov.cn/",
|
beianLink: "https://beian.miit.gov.cn/",
|
||||||
|
|||||||
Reference in New Issue
Block a user