This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user