import{G as h}from"./el-button-b67915d8.js";import{a as x,b as S,E as k}from"./el-breadcrumb-item-762e8056.js";import{C}from"./ckeditor-140c1ad2.js";import{g as E,u as I}from"./article-8e1d926f.js";import{E as d}from"./el-message-447d52b9.js";import{_ as B}from"./_plugin-vue_export-helper-c27b6911.js";import{q as c,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 z,a7 as A,a8 as L}from"./index-b2bcea28.js";import"./request-88e5850c.js";import"./aria-60e0cdc6.js";const _=a=>(A("data-v-edcc74e1"),a=a(),L(),a),T={class:"main"},F={class:"breadcrumb-section"},M=_(()=>t("a",{href:"/"},"經營理念",-1)),U=_(()=>t("div",null,null,-1)),$={style:{padding:"10px"}},q={class:"card-footer"},G={__name:"Index",setup(a){const p=C,s=c(""),u=c({simpleUpload:{uploadUrl:"https://prodio.zltest.com.tw/adminapi/article/uploadImage",headers:{"X-CSRF-TOKEN":"CSFR-Token",Authorization:`${sessionStorage.getItem("token")}`}},image:{resize:!0,toolbar:["imageTextAlternative","|","imageStyle:alignLeft","imageStyle:alignRight","|","imageStyle:alignBlockLeft","imageStyle:block","imageStyle:alignBlockRight"],styles:["full","alignLeft","alignRight"]}});w(async()=>{let n=await E(2);n.code===200&&(s.value=n.data.content)});const g=async()=>(await I({id:2,content:s.value})).code===200?d({message:"更新成功",type:"success"}):d({message:"更新失敗",type:"error"});return(n,l)=>{const r=x,f=S,v=V("ckeditor"),y=h,b=k;return N(),R("div",T,[t("div",F,[t("div",null,[e(f,{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",$,[e(v,{editor:z(p),modelValue:s.value,"onUpdate:modelValue":l[0]||(l[0]=i=>s.value=i),config:u.value},null,8,["editor","modelValue","config"])]),t("div",q,[e(y,{type:"primary",onClick:l[1]||(l[1]=i=>g())},{default:o(()=>[m("確認")]),_:1})])]),_:1})])}}},W=B(G,[["__scopeId","data-v-edcc74e1"]]);export{W as default};
