//企业主页
import { useGotoPage } from "../common.js";

const companyPages = () => import('@/views/companyPages/index.vue')
const companyPages2 = () => import('@/views/companyPages2/index.vue')


const companyPagesRoutes = [
  // 智库系统的主要路由
  {
    path: "/companyPages/:id",
    name: "companyPages",
    component: companyPages2,
    meta: {
      title: "企业主页",
      dynamicTitle: true
    }
  },
  // todo: 开发过程测试，开发完成后删除，by hsx ，20260306
  {
    path: "/companyPages2/:id",
    name: "companyPages2",
    component: companyPages,
    meta: {
      title: "企业主页",
      dynamicTitle: true
    }
  },

]

export function useGotoCompanyPages() {
  const gotoPage = useGotoPage();
  return (id, isNewTabs = true) => gotoPage("/companyPages/" + id, {}, isNewTabs)
}

export default companyPagesRoutes 