⚡ 优化自定义后缀只需要改一个文件

This commit is contained in:
7836246
2024-03-17 22:25:10 +08:00
parent 47c8fb76fd
commit 168013cb27
6 changed files with 2550 additions and 4036 deletions
+4 -2
View File
@@ -13,7 +13,7 @@ const router = useRouter();
const runtimeConfig = useRuntimeConfig()
const localePath = useLocalePath()
const settingsStore = useSettingsStore()
const handleAction = async (url: any) => {
if (!state.domain) return toast.add({ title: '请输入域名' })
@@ -25,7 +25,9 @@ const handleAction = async (url: any) => {
domain = updateDomainForTLD(parts);
state.domain = domain;
await router.push(localePath(`/${url}/${state.domain.replace(/\./g, '_')}.html`));
const isLink = ref({})
isLink.value = settingsStore.linkOpenType != 'currentWindow'
await router.push(localePath(`/${url}/${state.domain.replace(/\./g, '_')}.html`))
}