fix: 手机绑定状态
All checks were successful
构建并部署前端到生产环境 / build-and-deploy (push) Successful in 2m24s

This commit is contained in:
luo
2026-09-20 16:19:48 +08:00
parent c0cc1ae6dd
commit a81b403cce
3 changed files with 38 additions and 3 deletions

View File

@@ -42,6 +42,7 @@
import { ref, reactive, onMounted } from 'vue';
import { authApi, assetApi } from '@/api/index.js';
import { useUserStore } from '@/store/index.js';
import { setPhoneBindStatus } from '@/utils/phone-bind.js';
const POST_BIND_RELOGIN_NOTICE_KEY = 'postBindReloginNotice';
@@ -139,6 +140,8 @@
try {
await authApi.bindPhone(bind.phone, bind.code);
const identifier = userStore.state.identifier || uni.getStorageSync('identifier') || '';
setPhoneBindStatus(identifier, bind.phone);
if (fromLogin.value) {
prepareManualRelogin();