import{X as n}from"./index-5df52834.js";function h(){var i,o,s;const a=VueRouter.useRoute(),t=VueRouter.useRouter(),u=(i=a.query)!=null&&i.id?(o=a.query)==null?void 0:o.id:(s=a.params)==null?void 0:s.id;function r(e,m){m==="query"?(n().handleTags("push",{path:"/tabs/query-detail",name:"TabQueryDetail",query:{id:String(e)},meta:{title:{zh:`No.${e} - 详情信息`,en:`No.${e} - DetailInfo`},dynamicLevel:3}}),t.push({name:"TabQueryDetail",query:{id:String(e)}})):(n().handleTags("push",{path:"/tabs/params-detail/:id",name:"TabParamsDetail",params:{id:String(e)},meta:{title:{zh:`No.${e} - 详情信息`,en:`No.${e} - DetailInfo`}}}),t.push({name:"TabParamsDetail",params:{id:String(e)}}))}function l(e){Vue.onBeforeMount(()=>{u&&r(u,e)})}return{toDetail:r,initToDetail:l,id:u,router:t}}export{h as u};
