import{G as b}from"./el-button-7b435908.js";import{a as h,b as x,E as S}from"./el-breadcrumb-item-0c010d2b.js";import{C as k}from"./ckeditor-8ca0487d.js";import{g as C,u as E}from"./article-42f61703.js";import{E as d}from"./el-message-c3316f84.js";import{_ as I}from"./_plugin-vue_export-helper-c27b6911.js";import{q as c,z as B,L as w,o as V,f as N,M as o,Q as e,w as t,N as m,a as R,a7 as z,a8 as A}from"./index-11843334.js";import"./request-79887494.js";import"./aria-60e0cdc6.js";const L=a=>(z("data-v-61a86e6f"),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 _=k,s=c(""),p=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"]}});B(async()=>{let n=await C(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 l=h,f=x,g=w("ckeditor"),v=b,y=S;return V(),N("div",T,[o("div",F,[o("div",null,[e(f,{separator:"/"},{default:t(()=>[e(l,null,{default:t(()=>[m(" 經銷系統 ")]),_:1}),e(l,null,{default:t(()=>[M]),_:1})]),_:1})])]),e(y,{"body-style":{padding:"0px"}},{default:t(()=>[o("div",U,[e(g,{editor:R(_),modelValue:s.value,"onUpdate:modelValue":r[0]||(r[0]=i=>s.value=i),config:p.value},null,8,["editor","modelValue","config"])]),o("div",$,[e(v,{type:"primary",onClick:r[1]||(r[1]=i=>u())},{default:t(()=>[m("確認")]),_:1})])]),_:1})])}}},P=I(q,[["__scopeId","data-v-61a86e6f"]]);export{P as default};
