fix: 缓存并显示新手机号
All checks were successful
构建并部署前端到生产环境 / build-and-deploy (push) Successful in 2m23s

This commit is contained in:
luo
2026-09-28 16:30:29 +08:00
parent dc53295e2c
commit 77b0e25011
2 changed files with 9 additions and 3 deletions

View File

@@ -273,7 +273,7 @@
deviceInfo.imei = data.imei || '-';
deviceInfo.asset_type = data.asset_type || 'device';
const apiBoundPhone = data.bound_phone || '';
const effectiveBoundPhone = apiBoundPhone || localBindStatus?.phone || '';
const effectiveBoundPhone = localBindStatus?.phone || apiBoundPhone || '';
deviceInfo.bound_phone = effectiveBoundPhone;
deviceInfo.packageName = data.current_package || '-';
deviceInfo.currentPackageId = Number(data.current_package_id || 0);
@@ -291,7 +291,7 @@
userStore.setRealNameStatus(data.real_name_status);
boundPhone.value = effectiveBoundPhone;
alreadyBindPhone.value = !!(apiBoundPhone || localBindStatus?.bound);
if (apiBoundPhone) {
if (apiBoundPhone && (!localBindStatus || apiBoundPhone === localBindStatus.phone)) {
setPhoneBindStatus(identifier, apiBoundPhone);
}