Update index.vue

This commit is contained in:
lhkuan 2024-05-06 16:02:35 +08:00 committed by GitHub
parent b1da1b60c0
commit 5aaeb25ef1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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?:\/\/)/, "");