home
home copied to clipboard
Add: New
- 1.添加公安网备案号显示功能;
- 2.添加时钟等宽字体支持(不支持LED字体);
- 3.添加时钟可选字体功能
实现部分
-
.env新增配置项:Line 39-46
# 公安网备案号 ## 若不需要,请设为空即可 VITE_SITE_PSR = "皖公网安备34040002000514号" # 时间字体 ## 默认值为 'UnidreamLED' ,使用该字体无法实现等宽字体,(注意字体名引号) ## 添加字体请在 .\public\font 添加字体文件 VITE_TIME_FRONT = "'UnidreamLED'" -
./src/components/Footer.vue实现页脚展示公安网备案号Line 30-36
<!-- 添加:公安备案 --> <span> & <a v-if="sitePsr" href="https://beian.mps.gov.cn/#/query/webSearch" target="_blank"> {{ sitePsr }} </a> </span>Line 66-67
// 添加:公安备案 const sitePsr = ref(import.meta.env.VITE_SITE_PSR); -
./src/views/Func/index.vue实现时钟可选字体功能与等宽字体支持Line 52-53
// 引入配置项 const timefornt = ref(import.meta.env.VITE_TIME_FRONT);Line 191-132
font-family: v-bind(timefornt); font-variant-numeric: tabular-nums; // 强制数字等宽
@WavesMan is attempting to deploy a commit to the imsyy's projects Team on Vercel.
A member of the Team first needs to authorize it.