import{G as b}from"./el-button-e2db9d24.js";import{a as S,b as h,E as x}from"./el-breadcrumb-item-4a5b4005.js";import{C}from"./ckeditor-5a4d90f5.js";import{g as k,u as E}from"./article-811f6990.js";import{E as d}from"./el-message-3c79da29.js";import{_ as I}from"./_plugin-vue_export-helper-c27b6911.js";import{q as c,z as B,L as w,o as z,f as V,M as o,Q as e,w as t,N as m,a as N,a7 as R,a8 as A}from"./index-7ed2d026.js";import"./request-26ab9dc6.js";import"./aria-60e0cdc6.js";const L=a=>(R("data-v-a87ce681"),a=a(),A(),a),T={class:"main"},F={class:"breadcrumb-section"},M=L(()=>o("a",{href:"/"},"公司簡介",-1)),U={style:{padding:"10px"}},$={class:"card-footer"},q={__name:"Index",setup(a){const p=C,s=c(""),_=c({simpleUpload:{uploadUrl:"https://prodio.zltest.com.tw/adminapi/article/uploadImage",headers:{"X-CSRF-TOKEN":"CSFR-Token",Authorization:`${sessionStorage.getItem("token")}`}},fontSize:{options:["tiny","default","big"]},image:{resize:!0,toolbar:["imageTextAlternative","|","imageStyle:alignLeft","imageStyle:alignRight","|","imageStyle:alignBlockLeft","imageStyle:block","imageStyle:alignBlockRight","|","fontSize","fontColor","fontBackgroundColor"],styles:["full","alignLeft","alignRight"]}});B(async()=>{let n=await k(1);n.code===200&&(s.value=n.data.content)});const u=async()=>(await E({id:1,content:s.value})).code===200?d({message:"更新成功",type:"success"}):d({message:"更新失敗",type:"error"});return(n,r)=>{const i=S,f=h,g=w("ckeditor"),y=b,v=x;return z(),V("div",T,[o("div",F,[o("div",null,[e(f,{separator:"/"},{default:t(()=>[e(i,null,{default:t(()=>[m(" 經銷系統 ")]),_:1}),e(i,null,{default:t(()=>[M]),_:1})]),_:1})])]),e(v,{"body-style":{padding:"0px"}},{default:t(()=>[o("div",U,[e(g,{editor:N(p),modelValue:s.value,"onUpdate:modelValue":r[0]||(r[0]=l=>s.value=l),config:_.value},null,8,["editor","modelValue","config"])]),o("div",$,[e(y,{type:"primary",onClick:r[1]||(r[1]=l=>u())},{default:t(()=>[m("確認")]),_:1})])]),_:1})])}}},P=I(q,[["__scopeId","data-v-a87ce681"]]);export{P as default};
