From 12808714c11c7ce17ef724e0bb75c3e10ae04704 Mon Sep 17 00:00:00 2001 From: imsyy Date: Mon, 19 Jun 2023 11:21:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=83=A8=E5=88=86=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=97=A0=E6=95=88=20#155?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 4 +- README.md | 2 +- README_EN.md | 2 +- src/assets/siteLinks.json | 74 ++++++++++++++--------------- src/components/Background/index.vue | 7 +-- src/components/Footer/index.vue | 4 +- src/components/Links/index.vue | 19 ++++++-- 7 files changed, 62 insertions(+), 50 deletions(-) diff --git a/.env b/.env index a679382..8b34c17 100644 --- a/.env +++ b/.env @@ -7,7 +7,8 @@ VITE_SITE_URL = "imsyy.top" VITE_SITE_LOGO = "/images/icon/favicon.ico" VITE_SITE_APPLE_LOGO = "/images/logo/apple-touch-icon.png" -# 百度统计(若不需要可不填) +# 百度统计 +## 若不需要,请设为空即可 VITE_SITE_BAIDUTONGJI = "14e9f35ff8bc67fd4bcb5f07a6e6655a" # 简介文本 @@ -30,6 +31,7 @@ VITE_DESC_TEXT_OTHER = "哎呀,这都被你发现了( 再点击一次可关 VITE_WEATHER_KEY = "6c13af6fc30868bee488faf2cc652ab4" # 建站日期 +## 若不需要,请设为空即可 ## 请按照 YYYY-MM-DD 格式填写或者仅填写年份 YYYY VITE_SITE_START = "2020-10-24" diff --git a/README.md b/README.md index 04e2f0c..ef6056b 100644 --- a/README.md +++ b/README.md @@ -134,7 +134,7 @@ make clean all ### API * [MetingAPI By 武恩赐](https://api.wuenci.com/meting/api/) -* [小歪 API](https://api.ixiaowai.cn/) +* [搏天 API](https://api.btstu.cn/doc/sjbz.php) * [高德开放平台](https://lbs.amap.com/) * [Hitokoto 一言](https://hitokoto.cn/) diff --git a/README_EN.md b/README_EN.md index 8b847c9..bfa5787 100644 --- a/README_EN.md +++ b/README_EN.md @@ -119,7 +119,7 @@ make clean all ### API * [MetingAPI By 武恩赐](https://api.wuenci.com/meting/api/) -* [小歪 API](https://api.ixiaowai.cn/) +* [搏天 API](https://api.btstu.cn/doc/sjbz.php) * [高德开放平台](https://lbs.amap.com/) * [Hitokoto 一言](https://hitokoto.cn/) diff --git a/src/assets/siteLinks.json b/src/assets/siteLinks.json index 048680b..e29ae50 100644 --- a/src/assets/siteLinks.json +++ b/src/assets/siteLinks.json @@ -1,41 +1,37 @@ [ - [ - { - "icon": "Blog", - "name": "博客", - "link": "https://blog.imsyy.top/" - }, - { - "icon": "Cloud", - "name": "网盘", - "link": "https://pan.imsyy.top/" - }, - { - "icon": "CompactDisc", - "name": "音乐", - "link": "https://music.imsyy.top/" - }, - { - "icon": "Compass", - "name": "起始页", - "link": "https://nav.imsyy.top/" - }, - { - "icon": "Book", - "name": "网址集", - "link": "https://web.imsyy.top/" - }, - { - "icon": "Fire", - "name": "今日热榜", - "link": "https://hot.imsyy.top/" - } - ], - [ - { - "icon": "LaptopCode", - "name": "站点监测", - "link": "https://status.imsyy.top/" - } - ] + { + "icon": "Blog", + "name": "博客", + "link": "https://blog.imsyy.top/" + }, + { + "icon": "Cloud", + "name": "网盘", + "link": "https://pan.imsyy.top/" + }, + { + "icon": "CompactDisc", + "name": "音乐", + "link": "https://music.imsyy.top/" + }, + { + "icon": "Compass", + "name": "起始页", + "link": "https://nav.imsyy.top/" + }, + { + "icon": "Book", + "name": "网址集", + "link": "https://web.imsyy.top/" + }, + { + "icon": "Fire", + "name": "今日热榜", + "link": "https://hot.imsyy.top/" + }, + { + "icon": "LaptopCode", + "name": "站点监测", + "link": "https://status.imsyy.top/" + } ] diff --git a/src/components/Background/index.vue b/src/components/Background/index.vue index 6bd044a..599c447 100644 --- a/src/components/Background/index.vue +++ b/src/components/Background/index.vue @@ -18,10 +18,11 @@ import { onMounted, ref, watch, h } from "vue"; import { SuccessPicture } from "@icon-park/vue-next"; import { mainStore } from "@/store"; -const store = mainStore(); +const store = mainStore(); const bgUrl = ref(null); // 壁纸链接 +// 更换壁纸链接 const changeBg = (type) => { if (type == 0) { bgUrl.value = `/images/background${Math.floor( @@ -32,7 +33,7 @@ const changeBg = (type) => { } else if (type == 2) { bgUrl.value = "https://api.btstu.cn/sjbz/api.php?lx=fengjing&format=images"; } else if (type == 3) { - bgUrl.value = "https://www.dmoe.cc/random.php"; + bgUrl.value = "https://api.btstu.cn/sjbz/api.php?lx=dongman&format=images"; } }; @@ -140,4 +141,4 @@ watch( } } } - \ No newline at end of file + diff --git a/src/components/Footer/index.vue b/src/components/Footer/index.vue index 131a4b5..8adeebd 100644 --- a/src/components/Footer/index.vue +++ b/src/components/Footer/index.vue @@ -8,7 +8,7 @@ - {{ fullYear }} - 無名 + {{ SiteAnthor }}