feat(实时信息): 添加搜索跳转功能并检查登录状态

添加goSreach函数用于跳转到搜索页面,在跳转前检查用户token状态
This commit is contained in:
zzp 2025-09-12 09:55:31 +08:00
parent 885109158d
commit 643f49a72f
1 changed files with 11 additions and 0 deletions

View File

@ -270,6 +270,17 @@ function handleTabClick(index) {
lineTabIndex.value = index;
}
function goSreach() {
if (uni.getStorageSync("token")) {
uni.navigateTo({
url: "/pages/sreachReq/index",
});
} else {
uni.navigateTo({
url: "/pages/login/indexMini",
});
}
}
onUnmounted(() => {
clearInterval(timer);
});