mirror of
https://github.com/hi2shark/nazhua.git
synced 2026-01-11 22:50:42 +08:00
✨ 新增网站底部slogan设置
This commit is contained in:
parent
86b45b5f2a
commit
2a05809c9c
@ -1,5 +1,6 @@
|
||||
window.$$nazhuaConfig = {
|
||||
// title: '哪吒监控', // 网站标题
|
||||
// footerSlogan: '不要年付!不要年付!不要年付!<span style="color: #f00;">欢迎访问Nazhua探针</span>',
|
||||
// freeAmount: '白嫖', // 免费服务的费用名称
|
||||
// infinityCycle: '长期有效', // 无限周期名称
|
||||
// buyBtnText: '购买', // 购买按钮文案
|
||||
|
||||
@ -1,5 +1,11 @@
|
||||
<template>
|
||||
<div class="layout-footer">
|
||||
<div
|
||||
v-if="footerSlogan"
|
||||
class="footer-slogan"
|
||||
>
|
||||
<div v-html="footerSlogan" />
|
||||
</div>
|
||||
<div class="copyright-text">
|
||||
<span class="text">
|
||||
Powered by
|
||||
@ -40,9 +46,13 @@ import {
|
||||
nextTick,
|
||||
} from 'vue';
|
||||
import { useStore } from 'vuex';
|
||||
import config from '@/config';
|
||||
|
||||
const version = import.meta.env.VITE_APP_VERSION;
|
||||
const store = useStore();
|
||||
|
||||
const footerSlogan = computed(() => decodeURIComponent(config.nazhua?.footerSlogan || ''));
|
||||
|
||||
const dynamicContentRef = ref();
|
||||
|
||||
const dynamicContent = computed(() => {
|
||||
@ -93,6 +103,16 @@ onMounted(() => {
|
||||
font-size: 12px;
|
||||
color: #ccc;
|
||||
|
||||
.footer-slogan {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-bottom: 5px;
|
||||
|
||||
font-size: 14px;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.copyright-text {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user