token打印测试

This commit is contained in:
francis_fh
2026-01-14 22:02:07 +08:00
parent cc6da8adfd
commit d2653c8394
2 changed files with 13 additions and 10 deletions

View File

@@ -23,16 +23,7 @@ import useUserStore from '@/stores/useUserStore';
import { tabbarManager } from '@/utils/tabbarManager';
const { unreadCount } = storeToRefs(useReadMsg());
const userStore = useUserStore();
onLoad((options) => {
// H5环境下从URL获取token并自动登录
// #ifdef H5
const token = options.token || '';
alert(token)
if (token) {
userStore.loginSetToken(token);
}
// #endif
// useReadMsg().fetchMessages();
});