mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-07-27 12:30:41 +08:00
feat: 新增全局搜索功能,优化页面默认跳转逻辑
1. 新增全局搜索弹窗组件及相关事件常量 2. 修复首页默认跳转路径,改回首页而非动态页 3. 注释无用的单例运行代码 4. 添加背景模糊样式类 5. 更新搜索API类型定义 6. 底部导航栏搜索按钮触发全局搜索弹窗
This commit is contained in:
@@ -115,7 +115,7 @@ const { list: postList, refresh } = useListData<ListedPostVo>({
|
||||
onLoad(() => {
|
||||
console.log('home onLoad')
|
||||
refresh()
|
||||
runSingle({ name: '019eb1ca-e37c-7729-97af-e0b658aeef0f' })
|
||||
// runSingle({ name: '019eb1ca-e37c-7729-97af-e0b658aeef0f' })
|
||||
})
|
||||
|
||||
onPageScroll(() => { })
|
||||
|
||||
@@ -14,8 +14,8 @@ definePage({
|
||||
onLoad(() => {
|
||||
console.log('index onLoad')
|
||||
// 默认跳转首页
|
||||
// uni.switchTab({ url: '/pages/home/home' })
|
||||
uni.switchTab({ url: '/pages/moments/moments' })
|
||||
uni.switchTab({ url: '/pages/home/home' })
|
||||
// uni.switchTab({ url: '/pages/moments/moments' })
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user