pull/265/head
xiaojunnuo 2024-12-07 16:16:50 +08:00
parent 8f7b3f29ce
commit 6c9f9940e3
1 changed files with 1 additions and 8 deletions

View File

@ -16,18 +16,11 @@
<script lang="ts" setup>
import { computed } from "vue";
import psl from "psl";
const props = defineProps<{
record: any;
}>();
const mainDomain = computed(() => {
if (props?.record?.domain) {
return psl.parse(props.record.domain).domain;
}
return "";
});
const nslookupCmd = computed(() => {
return `nslookup -qa=txt ${props.record.hostRecord}.${mainDomain.value}`;
return `nslookup -qa=txt _acme-challenge.${props.record.domain}`;
});
</script>