This commit is contained in:
Waves_Man 2025-04-23 12:47:18 +00:00 committed by GitHub
commit 3d185ad91e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 23 additions and 2 deletions

View File

@ -35,7 +35,15 @@ VITE_SITE_START = "2020-10-24"
# ICP 备案号
## 若不需要,请设为空即可
VITE_SITE_ICP = "豫ICP备2022018134号-1"
VITE_SITE_ICP = "皖ICP备2025078205号"
# I公安网备案号
## 若不需要,请设为空即可
VITE_SITE_PSR = "皖公网安备34040002000514号"
# 时间字体
## 默认值为 'UnidreamLED' ,使用该字体无法实现等宽字体,(注意字体名引号)
## 添加字体请在 .\public\font 添加字体文件
VITE_TIME_FRONT = "'UnidreamLED'"
# 歌曲 API 地址
## 请参照 https://github.com/xizeyoupan/Meting-API#deno-deploy 进行 API 服务部署

View File

@ -27,6 +27,13 @@
{{ siteIcp }}
</a>
</span>
<!-- 添加公安备案 -->
<span>
&amp;
<a v-if="sitePsr" href="https://beian.mps.gov.cn/#/query/webSearch" target="_blank">
{{ sitePsr }}
</a>
</span>
</div>
<div v-else class="lrc">
<Transition name="fade" mode="out-in">
@ -56,6 +63,8 @@ const startYear = ref(
import.meta.env.VITE_SITE_START.substring(0, 4) : null
);
const siteIcp = ref(import.meta.env.VITE_SITE_ICP);
//
const sitePsr = ref(import.meta.env.VITE_SITE_PSR);
const siteAuthor = ref(import.meta.env.VITE_SITE_AUTHOR);
const siteUrl = computed(() => {
const url = import.meta.env.VITE_SITE_URL;

View File

@ -49,6 +49,9 @@ const updateTimeData = () => {
currentTime.value = getCurrentTime();
};
//
const timefornt = ref(import.meta.env.VITE_TIME_FRONT);
onMounted(() => {
updateTimeData();
timeInterval.value = setInterval(updateTimeData, 1000);
@ -125,7 +128,8 @@ onBeforeUnmount(() => {
margin-top: 10px;
font-size: 3.25rem;
letter-spacing: 2px;
font-family: "UnidreamLED";
font-family: v-bind(timefornt);
font-variant-numeric: tabular-nums; //
}
@media (min-width: 1201px) and (max-width: 1280px) {
font-size: 1rem;