fix: some
All checks were successful
构建并部署前端到生产环境 / build-and-deploy (push) Successful in 2m14s

This commit is contained in:
luo
2026-10-13 16:11:02 +08:00
parent da95a914e3
commit 97dec4dc65
9 changed files with 71 additions and 61 deletions

View File

@@ -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');