fix: 修复cname排查方法 nslookup命令显示黑色的问题

pull/265/head
xiaojunnuo 2024-12-07 15:19:28 +08:00
parent a2fd9559c5
commit 3dfeeec899
2 changed files with 10 additions and 2 deletions

View File

@ -7,7 +7,7 @@
<div>2. 要添加的是CNAME类型的记录不是TXT</div>
<div>3. 核对记录值是否是:{{ record.recordValue }}</div>
<div>
4. 运行命令 <a-tag>nslookup -qa=txt {{ record.hostRecord }}{{ record.domain }}</a-tag>
4. 运行命令 <a-tag color="green">nslookup -qa=txt {{ record.hostRecord }}.{{ mainDomain }}</a-tag>
</div>
</div>
</template>
@ -16,7 +16,15 @@
</template>
<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 "";
});
</script>

View File

@ -12,7 +12,7 @@ const slots = defineSlots();
<template>
<div class="tutorial-button pointer" @click="open">
<template v-if="!slots.default">
<fs-icon icon="mingcute:question-line"></fs-icon>
<fs-icon icon="ant-design:question-circle-outlined"></fs-icon>
<div class="ml-5">使用教程</div>
</template>
<slot></slot>