🔥 添加自定义后缀

This commit is contained in:
7836246
2024-03-18 00:19:08 +08:00
parent 168013cb27
commit 4c6250b1f9
10 changed files with 208 additions and 10 deletions
+2 -1
View File
@@ -1,5 +1,4 @@
<script setup lang="ts">
import {SupportedTLDs} from "~/utils/domain";
import {useStyleStore} from "~/stores/style";
const { t } = useI18n()
@@ -14,7 +13,9 @@ const router = useRouter();
const runtimeConfig = useRuntimeConfig()
const localePath = useLocalePath()
const settingsStore = useSettingsStore()
const domainStore = useDomainStore()
const SupportedTLDs = new Set(Object.keys(domainStore.SupportedTLDs));
const handleAction = async (url: any) => {
if (!state.domain) return toast.add({ title: '请输入域名' })
let domain = trimDomain(state.domain);