diff --git a/pages.config.ts b/pages.config.ts index 1f068ad..9533f17 100644 --- a/pages.config.ts +++ b/pages.config.ts @@ -31,6 +31,9 @@ export default defineUniPages({ { pagePath: "pages/index/index", }, + { + pagePath: "pages/work/index", + }, { pagePath: "pages/mine/index", }, diff --git a/src/composables/useTabbar.ts b/src/composables/useTabbar.ts index 860c59a..e01b0a2 100644 --- a/src/composables/useTabbar.ts +++ b/src/composables/useTabbar.ts @@ -8,6 +8,7 @@ export interface TabbarItem { const tabbarItems = ref([ { name: "home", value: null, active: true, title: "首页", icon: "home" }, + { name: "work", value: null, active: false, title: "工作台", icon: "apps" }, { name: "mine", value: null, active: false, title: "我的", icon: "user" }, ]); diff --git a/src/layouts/default.vue b/src/layouts/default.vue index bca13a4..a5deb4a 100644 --- a/src/layouts/default.vue +++ b/src/layouts/default.vue @@ -4,6 +4,13 @@ import { storeToRefs } from "pinia"; const themeStore = useThemeStore(); const { theme, themeVars } = storeToRefs(themeStore); + +// 获取系统状态栏高度 +const statusBarHeight = ref(0); +onMounted(() => { + const systemInfo = uni.getSystemInfoSync(); + statusBarHeight.value = systemInfo.statusBarHeight || 0; +});