mirror of
https://github.com/imsyy/home.git
synced 2025-05-19 20:50:14 +09:00
Update index.vue
This commit is contained in:
parent
b1da1b60c0
commit
5aaeb25ef1
@ -63,7 +63,7 @@ const closeShow = ref(false);
|
|||||||
// 站点链接
|
// 站点链接
|
||||||
const siteUrl = computed(() => {
|
const siteUrl = computed(() => {
|
||||||
const url = import.meta.env.VITE_SITE_URL;
|
const url = import.meta.env.VITE_SITE_URL;
|
||||||
if (!url) return "imsyy.top".split(".");
|
if (!url) return "lidu.ltd".split(".");
|
||||||
// 判断协议前缀
|
// 判断协议前缀
|
||||||
if (url.startsWith("http://") || url.startsWith("https://")) {
|
if (url.startsWith("http://") || url.startsWith("https://")) {
|
||||||
const urlFormat = url.replace(/^(https?:\/\/)/, "");
|
const urlFormat = url.replace(/^(https?:\/\/)/, "");
|
||||||
|
Loading…
Reference in New Issue
Block a user