1
0
mirror of https://github.com/ialley-workshop-open/uni-halo.git synced 2026-11-13 22:11:42 +08:00
Files
uni-halo/src/App.ku.vue
T
小莫唐尼 e5e3ad3d8b feat&refactor: 完成项目多轮优化与功能迭代
1. 调整开发环境与生产环境接口地址为局域网地址
2. 新增页面滚动监听hook、版权组件与小尺寸阴影工具类
3. 优化多处组件样式、导航栏与tabbar配置
4. 重构恋爱模块配置类型与移除冗余接口
5. 修复多处代码细节与优化用户体验
2026-09-12 22:33:50 +08:00

36 lines
910 B
Vue

<script setup lang="ts">
import { ref } from 'vue'
import { isPageTabbar } from './tabbar/store'
import { currRoute } from './utils'
import { useSettingsPopup } from '@/hooks/useSettingsPopup'
import CustomTabbar from '@/tabbar/index.vue'
const isCurrentPageTabbar = ref(true)
const globalSettingsVisible = ref(false)
const { settingsPopupVisible, openSettingsPopup } = useSettingsPopup()
onShow(() => {
const { path } = currRoute()
if (path === '/') {
isCurrentPageTabbar.value = true
}
else {
isCurrentPageTabbar.value = isPageTabbar(path)
}
})
</script>
<template>
<view>
<uh-global-actions>
<uh-scrolltop-button :fixed="false" />
<uh-settings-button :fixed="false" @action-click="openSettingsPopup()" />
</uh-global-actions>
<uh-settings-popup v-model="settingsPopupVisible" />
<KuRootView />
<CustomTabbar v-if="isCurrentPageTabbar" />
</view>
</template>