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

This commit is contained in:
luo
2026-10-13 14:53:19 +08:00
parent 77b0e25011
commit da95a914e3
31 changed files with 1702 additions and 116 deletions

9
utils/session-context.js Normal file
View File

@@ -0,0 +1,9 @@
export const getSessionContext = () => ({
token: uni.getStorageSync('token') || '',
identifier: uni.getStorageSync('identifier') || ''
});
export const isCurrentSession = (context) => {
const current = getSessionContext();
return !!context.token && context.token === current.token && context.identifier === current.identifier;
};