diff --git a/src/components/Background.vue b/src/components/Background.vue
index ec88f6d..178cfd5 100644
--- a/src/components/Background.vue
+++ b/src/components/Background.vue
@@ -43,9 +43,9 @@ const changeBg = (type) => {
} else if (type == 1) {
bgUrl.value = "https://api.dujin.org/bing/1920.php";
} else if (type == 2) {
- bgUrl.value = "https://api.btstu.cn/sjbz/api.php?lx=fengjing&format=images";
+ bgUrl.value = "https://api.aixiaowai.cn/gqapi/gqapi.php";
} else if (type == 3) {
- bgUrl.value = "https://api.btstu.cn/sjbz/api.php?lx=dongman&format=images";
+ bgUrl.value = "https://api.aixiaowai.cn/api/api.php";
}
};
diff --git a/src/components/Footer.vue b/src/components/Footer.vue
index 02b8a74..f90a1bf 100644
--- a/src/components/Footer.vue
+++ b/src/components/Footer.vue
@@ -9,7 +9,7 @@
-
{{ fullYear }}
- {{ SiteAnthor }}
+ {{ siteAnthor }}
@@ -48,8 +48,16 @@ const fullYear = new Date().getFullYear();
// 加载配置数据
const siteStartDate = ref(import.meta.env.VITE_SITE_START);
const siteIcp = ref(import.meta.env.VITE_SITE_ICP);
-const SiteAnthor = ref(import.meta.env.VITE_SITE_ANTHOR);
-const SiteUrl = ref(import.meta.env.VITE_SITE_URL);
+const siteAnthor = ref(import.meta.env.VITE_SITE_ANTHOR);
+const siteUrl = computed(() => {
+ const url = import.meta.env.VITE_SITE_URL;
+ if (!url) return "https://www.imsyy.top";
+ // 判断协议前缀
+ if (!url.startsWith("http://") && !url.startsWith("https://")) {
+ return "//" + url;
+ }
+ return url;
+});