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