main #2

Merged
jingrow merged 250 commits from main into v1 2026-01-13 22:45:50 +08:00
Showing only changes of commit 19e797382d - Show all commits

View File

@ -194,6 +194,8 @@ export default {
whoisProtectionLoading: false,
domainOwner: null,
realNameStatus: 'unverified', // verified, unverified
realNameSyncing: false, //
triedSyncRealName: false, //
};
},
@ -265,6 +267,10 @@ export default {
this.realNameStatus = 'verified';
} else {
this.realNameStatus = 'unverified';
//
if (!this.triedSyncRealName) {
this.syncOwnerRealNameStatus();
}
}
} else {
this.realNameStatus = 'unverified';
@ -283,6 +289,34 @@ export default {
this.realNameStatus = 'unverified';
}
},
//
async syncOwnerRealNameStatus() {
if (this.realNameSyncing || this.triedSyncRealName) return;
if (!this.$domain.pg?.domain) return;
this.triedSyncRealName = true;
this.realNameSyncing = true;
try {
const syncRequest = createResource({
url: 'jcloud.api.domain_west.sync_domain_info_from_west',
params: {
domain: this.$domain.pg.domain
},
onSuccess: () => {
this.realNameSyncing = false;
//
this.getDomainOwner();
},
onError: (error) => {
console.error('同步域名实名状态失败:', error);
this.realNameSyncing = false;
}
});
syncRequest.submit();
} catch (error) {
console.error('同步域名实名状态失败:', error);
this.realNameSyncing = false;
}
},
renewDomain() {
const JsiteDomainRenewalDialog = defineAsyncComponent(() => import('./JsiteDomainRenewalDialog.vue'));