| | |
| | | import useUserStore from "@/store/modules/user"; |
| | | |
| | | const userStore = useUserStore(); |
| | | const { triggerVersionCheck } = createVersionUpgradeChecker({ logPrefix: "[version-works]" }); |
| | | // const { triggerVersionCheck } = createVersionUpgradeChecker({ logPrefix: "[version-works]" }); |
| | | const show = ref(false); |
| | | const factoryList = ref([]); |
| | | const factoryListTem = ref([]); |
| | |
| | | icon: "/static/images/icon/xietongshenpi.svg", |
| | | label: "协同审批", |
| | | }, |
| | | { |
| | | icon: "/static/images/icon/huiyiguanli.svg", |
| | | label: "会议管理", |
| | | }, |
| | | { |
| | | icon: "/static/images/icon/tongzhigonggao.svg", |
| | | label: "通知公告", |
| | | }, |
| | | { |
| | | icon: "/static/images/icon/zhishiku.svg", |
| | | label: "知识库", |
| | | }, |
| | | { |
| | | icon: "/static/images/icon/yongyinguanli.svg", |
| | | label: "用印管理", |
| | | }, |
| | | { |
| | | icon: "/static/images/icon/guizhangzhidu.svg", |
| | | label: "规章制度", |
| | | }, |
| | | { |
| | | icon: "/static/images/icon/kehubaifang.svg", |
| | | label: "客户拜访", |
| | | }, |
| | | // { |
| | | // icon: "/static/images/icon/huiyiguanli.svg", |
| | | // label: "会议管理", |
| | | // }, |
| | | // { |
| | | // icon: "/static/images/icon/tongzhigonggao.svg", |
| | | // label: "通知公告", |
| | | // }, |
| | | // { |
| | | // icon: "/static/images/icon/zhishiku.svg", |
| | | // label: "知识库", |
| | | // }, |
| | | // { |
| | | // icon: "/static/images/icon/yongyinguanli.svg", |
| | | // label: "用印管理", |
| | | // }, |
| | | // { |
| | | // icon: "/static/images/icon/guizhangzhidu.svg", |
| | | // label: "规章制度", |
| | | // }, |
| | | // { |
| | | // icon: "/static/images/icon/kehubaifang.svg", |
| | | // label: "客户拜访", |
| | | // }, |
| | | ]); |
| | | |
| | | // 生产管控功能数据 |
| | |
| | | const hasEquipmentItems = computed(() => equipmentItems.length > 0); |
| | | |
| | | onMounted(() => { |
| | | triggerVersionCheck("onMounted"); |
| | | // triggerVersionCheck("onMounted"); |
| | | // 每次进入首页都强制刷新用户信息和路由权限,不做本地缓存判断 |
| | | userStore.getInfo().then(() => { |
| | | userStore |