mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-09-12 16:40:40 +08:00
902faa70e7
1. 移除旧版启动页分流逻辑,直接跳转首页 2. 新增返回顶部、章节标题、导航栏等全局组件 3. 重构偏好设置系统,实现站点默认与本地差异分层管理 4. 删除冗余的测试mock、插件模块与样式文件 5. 优化文章卡片与评论组件样式,更新全局主题色 6. 清理废弃的请求参数与配置项
38 lines
853 B
Vue
38 lines
853 B
Vue
<script setup lang="ts">
|
|
import { ref } from 'vue'
|
|
import FgTabbar from '@/tabbar/index.vue'
|
|
import { isPageTabbar } from './tabbar/store'
|
|
import { currRoute } from './utils'
|
|
|
|
const isCurrentPageTabbar = ref(true)
|
|
onShow(() => {
|
|
const { path } = currRoute()
|
|
// “蜡笔小开心”提到本地是 '/pages/index/index',线上是 '/' 导致线上 tabbar 不见了
|
|
// 所以这里需要判断一下,如果是 '/' 就当做首页,也要显示 tabbar
|
|
if (path === '/') {
|
|
isCurrentPageTabbar.value = true
|
|
}
|
|
else {
|
|
isCurrentPageTabbar.value = isPageTabbar(path)
|
|
}
|
|
})
|
|
|
|
const helloKuRoot = ref('Hello AppKuVue')
|
|
|
|
const exposeRef = ref('this is form app.Ku.vue')
|
|
|
|
defineExpose({
|
|
exposeRef,
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<view>
|
|
<uh-scroll-top />
|
|
|
|
<KuRootView />
|
|
|
|
<FgTabbar v-if="isCurrentPageTabbar" />
|
|
</view>
|
|
</template>
|