feat(实时信息): 添加搜索跳转功能并检查登录状态
添加goSreach函数用于跳转到搜索页面,在跳转前检查用户token状态
This commit is contained in:
parent
885109158d
commit
643f49a72f
|
|
@ -270,6 +270,17 @@ function handleTabClick(index) {
|
||||||
lineTabIndex.value = index;
|
lineTabIndex.value = index;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function goSreach() {
|
||||||
|
if (uni.getStorageSync("token")) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: "/pages/sreachReq/index",
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: "/pages/login/indexMini",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
onUnmounted(() => {
|
onUnmounted(() => {
|
||||||
clearInterval(timer);
|
clearInterval(timer);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue