import{f as a,h as s,z as t,j as l,D as e,k as o,x as i,Q as r,A as n,o as u}from"./vue-c4996fb3.js";import{a as d}from"./index-f23346c2.js";import{_ as m,J as p}from"./router-6e482302.js";import{g as v}from"./Task-e3178eaa.js";import{_}from"./loading2.vue_vue_type_style_index_0_lang-83e3a6ec.js";import"./withInstall-a23174bf.js";import"./useGlobalIcon-99a58828.js";const c={class:"custom-product-detail"},f=a({__name:"index",setup(a){const f=n().query.id,j=s(!1),x=s(""),y=t({list:[]}),g=a=>{p(a)};return l((()=>{(async()=>{try{if(void 0===f)return void d("没有类目id");j.value=!0;let a=await v(f,"parent");0==a.code&&(x.value=a.data[0].parent_title,y.list=a.data),j.value=!1}catch(a){j.value=!1}})()})),(a,s)=>(u(),e("div",c,[o(m,{label:x.value,list:y.list,onChange:g},null,8,["label","list"]),i(o(_,null,null,512),[[r,j.value]])]))}});export{f as default};
