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