import{G as h}from"./el-button-6b66070a.js";import{a as x,b as C,E}from"./el-breadcrumb-item-0eb7853a.js";import{C as S}from"./ckeditor-c707ce29.js";import{g as k,u as I}from"./article-2a36286c.js";import{E as c}from"./el-message-76e8eab1.js";import{_ as B}from"./_plugin-vue_export-helper-c27b6911.js";import{q as d,z as w,L as V,o as N,f as R,M as t,Q as e,w as o,N as m,a as L,a7 as T,a8 as z}from"./index-3ef4d3eb.js";import"./request-63584e50.js";import"./aria-60e0cdc6.js";const _=a=>(T("data-v-cc062065"),a=a(),z(),a),A={class:"main"},F={class:"breadcrumb-section"},M=_(()=>t("a",{href:"/"},"經營理念",-1)),U=_(()=>t("div",null,null,-1)),q={style:{padding:"10px"}},G={class:"card-footer"},K={__name:"Index",setup(a){const p=S,s=d(""),u=d({simpleUpload:{uploadUrl:"https://prodio.zltest.com.tw/adminapi/article/uploadImage",headers:{"X-CSRF-TOKEN":"CSFR-Token"}},image:{resize:!0,toolbar:["imageTextAlternative","|","imageStyle:alignLeft","imageStyle:alignRight","|","imageStyle:alignBlockLeft","imageStyle:block","imageStyle:alignBlockRight"],styles:["full","alignLeft","alignRight"]}});w(async()=>{let l=await k(2);l.code===200&&(s.value=l.data.content)});const f=async()=>(await I({id:2,content:s.value})).code===200?c({message:"更新成功",type:"success"}):c({message:"更新失敗",type:"error"});return(l,n)=>{const r=x,g=C,v=V("ckeditor"),y=h,b=E;return N(),R("div",A,[t("div",F,[t("div",null,[e(g,{separator:"/"},{default:o(()=>[e(r,null,{default:o(()=>[m(" 經銷系統 ")]),_:1}),e(r,null,{default:o(()=>[M]),_:1})]),_:1})]),U]),e(b,{"body-style":{padding:"0px"}},{default:o(()=>[t("div",q,[e(v,{editor:L(p),modelValue:s.value,"onUpdate:modelValue":n[0]||(n[0]=i=>s.value=i),config:u.value},null,8,["editor","modelValue","config"])]),t("div",G,[e(y,{type:"primary",onClick:n[1]||(n[1]=i=>f())},{default:o(()=>[m("確認")]),_:1})])]),_:1})])}}},W=B(K,[["__scopeId","data-v-cc062065"]]);export{W as default};
