import{B as x}from"./el-button-46177dcd.js";import{a as g,b as y,E as C}from"./el-breadcrumb-item-c6d267fc.js";import{C as I}from"./ckeditor-d8de2f1a.js";import{g as B,u as E}from"./article-5a407624.js";import{_ as h}from"./_plugin-vue_export-helper-c27b6911.js";import{q as l,z as V,L as k,o as w,f as N,M as a,Q as e,w as t,N as _,a as S,a5 as A,a6 as M}from"./index-b8bd6c45.js";import"./request-3180202a.js";const q=s=>(A("data-v-529e7cd4"),s=s(),M(),s),z={class:"main"},F={class:"breadcrumb-section"},L=q(()=>a("a",{href:"/"},"公司簡介",-1)),Q={style:{padding:"10px"}},T={class:"card-footer"},U={__name:"Index",setup(s){const i=I,n=l(""),p=l({});V(async()=>{let o=await B(1);console.log("res",o),o.code===200&&(n.value=o.data.content)});const m=async()=>{(await E({id:1,content:n.value})).code===200&&console.log("更新成功")};return(o,d)=>{const c=g,u=y,f=k("ckeditor"),v=x,b=C;return w(),N("div",z,[a("div",F,[a("div",null,[e(u,{separator:"/"},{default:t(()=>[e(c,null,{default:t(()=>[_(" 經銷系統 ")]),_:1}),e(c,null,{default:t(()=>[L]),_:1})]),_:1})])]),e(b,{"body-style":{padding:"0px"}},{default:t(()=>[a("div",Q,[e(f,{editor:S(i),modelValue:n.value,"onUpdate:modelValue":d[0]||(d[0]=r=>n.value=r),config:p.value},null,8,["editor","modelValue","config"])]),a("div",T,[e(v,{type:"primary",onClick:d[1]||(d[1]=r=>m())},{default:t(()=>[_("確認")]),_:1})])]),_:1})])}}},O=h(U,[["__scopeId","data-v-529e7cd4"]]);export{O as default};
