import{G as b}from"./el-button-6b66070a.js";import{a as x,b as h,E as C}from"./el-breadcrumb-item-0eb7853a.js";import{C as E}from"./ckeditor-c707ce29.js";import{g as S,u as k}from"./article-2a36286c.js";import{E as d}from"./el-message-76e8eab1.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 L,a8 as T}from"./index-3ef4d3eb.js";import"./request-63584e50.js";import"./aria-60e0cdc6.js";const z=a=>(L("data-v-8915fd74"),a=a(),T(),a),A={class:"main"},F={class:"breadcrumb-section"},M=z(()=>o("a",{href:"/"},"公司簡介",-1)),U={style:{padding:"10px"}},q={class:"card-footer"},G={__name:"Index",setup(a){const _=E,s=c(""),p=c({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"]}});B(async()=>{let r=await S(1);r.code===200&&(s.value=r.data.content)});const u=async()=>(await k({id:1,content:s.value})).code===200?d({message:"更新成功",type:"success"}):d({message:"更新失敗",type:"error"});return(r,l)=>{const n=x,f=h,g=w("ckeditor"),v=b,y=C;return V(),N("div",A,[o("div",F,[o("div",null,[e(f,{separator:"/"},{default:t(()=>[e(n,null,{default:t(()=>[m(" 經銷系統 ")]),_:1}),e(n,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":l[0]||(l[0]=i=>s.value=i),config:p.value},null,8,["editor","modelValue","config"])]),o("div",q,[e(v,{type:"primary",onClick:l[1]||(l[1]=i=>u())},{default:t(()=>[m("確認")]),_:1})])]),_:1})])}}},P=I(G,[["__scopeId","data-v-8915fd74"]]);export{P as default};
