import{n as d,A as s,d as m,q as l,i as u,j as _,o as f,c as y}from"./entry.4d30bc14.js";const w=async(i,o)=>{const a=d().$request,t={title:o,metaKeywords:s,metaDescription:s},e=await a(`/tdk/info/${i}`,{method:"get"},!0);return e&&(e.seo_title&&(t.title=e.seo_title),e.seo_keyword&&(t.metaKeywords=e.seo_keyword),e.seo_des&&(t.metaDescription=e.seo_des)),t},T=m({__name:"TheTdk",props:{pageTag:{type:String},pageTitle:{type:String,default:"尚层装饰官网"}},async setup(i){let o,a;const t=i,{pageTag:e,pageTitle:c}=l(t);let n={title:s,metaKeywords:s,metaDescription:s};async function p(){if(!e)return;const r=await w(e.value,c.value);r&&(n=r)}return[o,a]=u(()=>p()),await o,a(),_({title:n.title,meta:[{name:"keywords",content:n.metaKeywords},{name:"description",content:n.metaDescription}]}),(r,g)=>(f(),y("div"))}});export{T as _};