文件
yjyf/yjyf-master-app/pages/master/workbench.vue
MiAn cb32db0984 chore(master): 重构师傅端 tabbar 为独立页面路由模式
- 新增 tabbar 配置,改为独立页面路由
- 替换所有 reLaunch 为 switchTab 跳转 tab 页面
- 新增未读消息角标同步逻辑
- 移除旧的多 tab 组件化实现
- 新增 tabbar 图标资源文件
2026-11-28 09:24:48 +08:00

36 行
746 B
Vue

<template>
<view class="master-workbench-page">
<MasterWorkbenchView ref="workbenchRef" />
<YjyfPrivacyPopup />
</view>
</template>
<script setup>
import { ref } from 'vue';
import { onShow } from '@dcloudio/uni-app';
import MasterWorkbenchView from '@/components/master/MasterWorkbenchView.vue';
import YjyfPrivacyPopup from '@/components/YjyfPrivacyPopup.vue';
const workbenchRef = ref(null);
let initialShown = false;
onShow(() => {
if (!initialShown) {
initialShown = true;
return;
}
if (workbenchRef.value?.load) {
workbenchRef.value.load();
}
uni.$emit('yjyf:refreshUnread');
});
</script>
<style scoped>
.master-workbench-page {
height: 100vh;
overflow: hidden;
background: #F5F6F8;
}
</style>