spring
2025-11-20 a94ac3ace0e5e23d5fdf8446598ebda4882c51a7
src/pages/index/index.vue
@@ -93,6 +93,7 @@
import WorkerCallingCard from "@/components/worker-calling-card/index.vue";
import HomeApi from "@/api/home";
import { useUserStore } from "@/store/modules/user";
import { setTeamId, setPrepareId } from "@/utils/cache";
const visitStatsData = ref<VisitStatsVO>({
  todayUvCount: 0,
@@ -249,15 +250,26 @@
  checkVersion();
  const { data } = await HomeApi.getIndex();
  // 存储班组ID和生产准备ID
  if (data) {
    if (data.id) {
      setTeamId(data.id);
    }
    if (data.prepareId) {
      setPrepareId(data.prepareId);
    }
  }
  // 判断是否为巡检员角色
  if (isInspector.value) {
    // 如果是巡检员,显示巡检菜单
    navList[2].show = true;
  } else if (data.deviceGroupName == "时效组") {
  if (data.deviceGroupName == "时效组") {
    navList[1].show = true;
  } else {
    navList[0].show = true;
  }
  if (isInspector.value) {
    // 如果是巡检员,显示巡检菜单
    navList[2].show = true;
  }
};
/**