🚸 修复域名列表错误
This commit is contained in:
parent
410dc1ac58
commit
cb8ced830c
@ -1,5 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
const domainStore = useDomainStore();
|
|
||||||
|
const domainStore = useDomainListStore();
|
||||||
const SupportedTLDs = new Set(Object.keys(domainStore.SupportedTLDs));
|
const SupportedTLDs = new Set(Object.keys(domainStore.SupportedTLDs));
|
||||||
const isOpen = ref(false)
|
const isOpen = ref(false)
|
||||||
const {t} = useI18n()
|
const {t} = useI18n()
|
||||||
|
@ -9,6 +9,7 @@ export default defineI18nLocale(async locale => {
|
|||||||
reset: 'Reset',
|
reset: 'Reset',
|
||||||
confirm: 'Confirm',
|
confirm: 'Confirm',
|
||||||
add: 'Add',
|
add: 'Add',
|
||||||
|
cancel: 'Cancel',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
whois: {
|
whois: {
|
||||||
|
@ -12,6 +12,7 @@ export default defineI18nLocale(async locale => {
|
|||||||
confirm: '確定',
|
confirm: '確定',
|
||||||
//新增
|
//新增
|
||||||
add: '新增',
|
add: '新增',
|
||||||
|
cancel: '取消',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
whois: {
|
whois: {
|
||||||
|
@ -13,6 +13,8 @@ export default defineI18nLocale(async locale => {
|
|||||||
confirm: '确定',
|
confirm: '确定',
|
||||||
//添加
|
//添加
|
||||||
add: '添加',
|
add: '添加',
|
||||||
|
cancel: '取消',
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
whois: {
|
whois: {
|
||||||
|
@ -62,8 +62,8 @@ const handleReset = async () => {
|
|||||||
</div>
|
</div>
|
||||||
<n-popconfirm
|
<n-popconfirm
|
||||||
@positive-click="handleReset"
|
@positive-click="handleReset"
|
||||||
:negative-text="t('settings.cancel')"
|
:negative-text="t('common.actions.cancel')"
|
||||||
:positive-text="t('settings.confirm')"
|
:positive-text="t('common.actions.confirm')"
|
||||||
>
|
>
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<n-button type="warning"> {{ t('common.actions.reset') }}</n-button>
|
<n-button type="warning"> {{ t('common.actions.reset') }}</n-button>
|
||||||
|
@ -6,7 +6,7 @@ interface DomainState {
|
|||||||
SupportedTLDs: Record<string, string>;
|
SupportedTLDs: Record<string, string>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const useDomainStore = defineStore('domain', {
|
export const useDomainListStore = defineStore('useDomainListStore', {
|
||||||
// 使用箭头函数和类型注解定义state
|
// 使用箭头函数和类型注解定义state
|
||||||
state: (): DomainState => ({
|
state: (): DomainState => ({
|
||||||
SupportedTLDs: {...serversData},
|
SupportedTLDs: {...serversData},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user