This commit is contained in:
@@ -71,8 +71,6 @@
|
||||
import { useUserStore } from '@/store/index.js';
|
||||
import { initWxConfig, wxScan, isInWechat } from '@/utils/wxsdk.js';
|
||||
|
||||
const POST_BIND_RELOGIN_NOTICE_KEY = 'postBindReloginNotice';
|
||||
|
||||
const userStore = useUserStore();
|
||||
const identifier = ref(uni.getStorageSync('identifier') || '');
|
||||
const loading = ref(false);
|
||||
@@ -86,6 +84,8 @@
|
||||
};
|
||||
|
||||
onMounted(async () => {
|
||||
// Remove the obsolete post-bind re-login notice from older client builds.
|
||||
uni.removeStorageSync('postBindReloginNotice');
|
||||
const urlIdentifier = getPathDeviceId();
|
||||
const token = uni.getStorageSync('token');
|
||||
const storedIdentifier = uni.getStorageSync('identifier') || '';
|
||||
@@ -112,7 +112,6 @@
|
||||
return;
|
||||
}
|
||||
|
||||
showPostBindReloginNotice();
|
||||
handleWechatCallback();
|
||||
|
||||
// 初始化微信 SDK (仅在微信浏览器内执行)
|
||||
@@ -140,19 +139,6 @@
|
||||
resetLoadingState();
|
||||
});
|
||||
|
||||
const showPostBindReloginNotice = () => {
|
||||
if (uni.getStorageSync(POST_BIND_RELOGIN_NOTICE_KEY) !== '1') {
|
||||
return;
|
||||
}
|
||||
|
||||
uni.removeStorageSync(POST_BIND_RELOGIN_NOTICE_KEY);
|
||||
uni.showToast({
|
||||
title: '绑定手机号成功,请重新登录',
|
||||
icon: 'none',
|
||||
duration: 2500
|
||||
});
|
||||
};
|
||||
|
||||
const getCode = () => {
|
||||
const params = new URLSearchParams(window.location.search);
|
||||
return params.get('code');
|
||||
|
||||
Reference in New Issue
Block a user