diff --git a/dashboard/src2/components/JsiteDomainOverview.vue b/dashboard/src2/components/JsiteDomainOverview.vue index 1abd346..e10b43d 100644 --- a/dashboard/src2/components/JsiteDomainOverview.vue +++ b/dashboard/src2/components/JsiteDomainOverview.vue @@ -201,7 +201,7 @@ export default { whoisProtectionLoading: false, domainOwner: null, realNameStatus: 'unverified', // 实名认证状态:verified, unverified - realNameInfo: null, // 实名认证信息 + }; }, methods: { @@ -390,8 +390,7 @@ export default { renderDialog(h(JsiteDomainRealNameInfoDialog, { domain: this.domain, - domainDoc: this.$domain.pg, - realNameInfo: this.realNameInfo + domainDoc: this.$domain.pg })); }, // 显示上传实名资料 @@ -408,34 +407,8 @@ export default { onUploadSuccess() { toast.success('实名资料上传成功!'); this.getDomainOwner(); // 重新获取域名所有者信息(包含实名认证状态) - this.getRealNameInfo(); // 重新获取实名详细信息 - }, - // 获取域名实名认证信息 - async getRealNameInfo() { - if (!this.$domain.pg?.domain) { - return; - } - - try { - const getRealNameRequest = createResource({ - url: 'jcloud.api.domain_west.get_west_domain_real_info', - params: { - domain: this.$domain.pg.domain - }, - onSuccess: (response) => { - if (response && response.status === "success" && response.data) { - this.realNameInfo = response.data; - } - }, - onError: (error) => { - console.error('获取域名实名信息失败:', error); - } - }); - getRealNameRequest.submit(); - } catch (error) { - console.error('获取域名实名信息失败:', error); - } }, + }, watch: { // 监听域名数据变化,重新获取所有者信息 @@ -483,8 +456,6 @@ export default { } else { this.realNameStatus = 'unverified'; } - // 获取域名实名认证信息 - this.getRealNameInfo(); }, }; \ No newline at end of file diff --git a/dashboard/src2/components/JsiteDomainRealNameInfoDialog.vue b/dashboard/src2/components/JsiteDomainRealNameInfoDialog.vue index fedba73..c5e741b 100644 --- a/dashboard/src2/components/JsiteDomainRealNameInfoDialog.vue +++ b/dashboard/src2/components/JsiteDomainRealNameInfoDialog.vue @@ -14,6 +14,8 @@