import{_ as v}from"./index.6c726fd2.js";import{H as C,I as w,C as h,D as x,F as I,w as b}from"./element-plus.8115766e.js";import{r as d,f as g}from"./index.637212e4.js";import{d as F,a0 as V,ag as S,o as c,c as k,V as e,M as u,a,O as y,L as P,T as N}from"./@vue.cab01781.js";import"./@vueuse.724ed0af.js";import"./@element-plus.92b4185f.js";import"./lodash-es.29c53eac.js";import"./dayjs.66926594.js";import"./axios.2d915936.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.b68d77aa.js";import"./vue-router.5046cc50.js";import"./pinia.e85e8286.js";import"./vue-demi.bfae2336.js";import"./css-color-function.a8f9466d.js";import"./color.903ca10f.js";import"./clone.9d64bb7a.js";import"./color-convert.69e17089.js";import"./color-string.e356f5de.js";import"./color-name.e7a4e1d3.js";import"./nprogress.a96d99f2.js";import"./vue-clipboard3.91d4fd5f.js";import"./clipboard.c0a70c0c.js";import"./echarts.6ad8c478.js";import"./zrender.f91f2f01.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.0ab41b7b.js";function T(n){return d.post({url:"/channel/wx/save",params:n})}function U(){return d.get({url:"/channel/wx/detail"})}const W=a("div",{class:"font-medium mb-7"},"APP\u5E94\u7528",-1),q={class:"w-80"},H={class:"w-80"},L=a("div",{class:"form-tips"}," \u5C0F\u7A0B\u5E8F\u8D26\u53F7\u767B\u5F55\u5FAE\u4FE1\u516C\u4F17\u5E73\u53F0\uFF0C\u70B9\u51FB\u5F00\u53D1>\u5F00\u53D1\u8BBE\u7F6E->\u5F00\u53D1\u8005ID\uFF0C\u8BBE\u7F6EAppID\u548CAppSecret ",-1),M=N("\u4FDD\u5B58"),O=F({name:"wxDevConfig"}),Ae=F({...O,setup(n){const t=V({appId:"",appSecret:""}),l=async()=>{const s=await U();for(const o in t)t[o]=s[o]},_=async()=>{await T(t),l(),g.msgSuccess("\u64CD\u4F5C\u6210\u529F")};return l(),(s,o)=>{const E=C,i=w,m=h,r=x,f=I,B=b,D=v,A=S("perms");return c(),k("div",null,[e(i,{class:"!border-none",shadow:"never"},{default:u(()=>[e(E,{type:"warning",title:"\u6E29\u99A8\u63D0\u793A\uFF1A\u586B\u5199\u5FAE\u4FE1\u5F00\u653E\u5E73\u53F0\u5F00\u53D1\u914D\u7F6E\uFF0C\u8BF7\u524D\u5F80\u5FAE\u4FE1\u5F00\u653E\u5E73\u53F0\u521B\u5EFA\u5E94\u7528\u5E76\u5B8C\u6210\u8BA4\u8BC1\uFF1BAPP\u5E94\u7528\u914D\u7F6E\u4E3B\u8981\u7528\u4E8EAPP\u5FAE\u4FE1\u767B\u5F55\u548C\u5FAE\u4FE1\u652F\u4ED8",closable:!1,"show-icon":""})]),_:1}),e(f,{ref:"formRef",model:t,"label-width":"160px"},{default:u(()=>[e(i,{class:"!border-none mt-4",shadow:"never"},{default:u(()=>[W,e(r,{label:"AppID",prop:"appId"},{default:u(()=>[a("div",q,[e(m,{modelValue:t.appId,"onUpdate:modelValue":o[0]||(o[0]=p=>t.appId=p),placeholder:"\u8BF7\u8F93\u5165AppID"},null,8,["modelValue"])])]),_:1}),e(r,{label:"AppSecret",prop:"appSecret"},{default:u(()=>[a("div",null,[a("div",H,[e(m,{modelValue:t.appSecret,"onUpdate:modelValue":o[1]||(o[1]=p=>t.appSecret=p),placeholder:"\u8BF7\u8F93\u5165AppSecret"},null,8,["modelValue"])])])]),_:1}),e(r,null,{default:u(()=>[L]),_:1})]),_:1})]),_:1},8,["model"]),y((c(),P(D,null,{default:u(()=>[e(B,{type:"primary",onClick:_},{default:u(()=>[M]),_:1})]),_:1})),[[A,["channel:wx:save"]]])])}}});export{Ae as default};
