2 lines
3.3 KiB
JavaScript
2 lines
3.3 KiB
JavaScript
|
import{_ as w}from"./index.6fbb13c4.js";import{S as C,I as b,B as V,C as y,D as S,w as k}from"./element-plus.9c2fdfa8.js";import{r as f}from"./index.b57b84f0.js";import{d as F,$ as x,s as I,af as R,o as d,c as q,U as e,L as u,u as n,M as N,K as U,a as p,R as O}from"./@vue.53f8d7c3.js";import"./@vueuse.038954e7.js";import"./@element-plus.37f92579.js";import"./lodash-es.29c53eac.js";import"./dayjs.e873ead7.js";import"./@amap.8a62addd.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.5512e984.js";import"./axios.92474d72.js";import"./vue-router.e2f4a118.js";import"./pinia.bd103f5d.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.ee641d3d.js";import"./color.cbc2f3a9.js";import"./clone.7fddbad2.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.a7d78d4d.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.9cf3e967.js";function K(i){return f.post({url:"/channel.open_setting/setConfig",params:i})}function L(){return f.get({url:"/channel.open_setting/getConfig"})}const M=p("div",{class:"font-medium mb-7"},"\u7F51\u7AD9\u5E94\u7528",-1),T={class:"w-80"},$={class:"w-80"},j=F({name:"wxDevConfig"}),be=F({...j,setup(i){const t=x({app_id:"",app_secret:""}),s=I(),E={app_id:[{required:!0,message:"\u8BF7\u8F93\u5165AppID",trigger:["blur","change"]}],app_secret:[{required:!0,message:"\u8BF7\u8F93\u5165AppSecret",trigger:["blur","change"]}]},l=async()=>{const r=await L();for(const o in t)t[o]=r[o]},g=async()=>{var r;await((r=s.value)==null?void 0:r.validate()),await K(t),l()};return l(),(r,o)=>{const B=C,m=b,c=V,_=y,D=S,A=k,v=w,h=R("perms");return d(),q("div",null,[e(m,{class:"!border-none",shadow:"never"},{default:u(()=>[e(B,{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\uFF1B\u7F51\u7AD9\u5E94\u7528\u914D\u7F6E\u4E3B\u8981\u7528\u4E8E\u7F51\u7AD9\u5FAE\u4FE1\u767B\u5F55\u548C\u5FAE\u4FE1\u652F\u4ED8",closable:!1,"show-icon":""})]),_:1}),e(D,{ref_key:"formRef",ref:s,model:n(t),rules:E,"label-width":"160px"},{default:u(()=>[e(m,{class:"!border-none mt-4",shadow:"never"},{default:u(()=>[M,e(_,{label:"AppID",prop:"app_id"},{default:u(()=>[p("div",T,[e(c,{modelValue:n(t).app_id,"onUpdate:modelValue":o[0]||(o[0]=a=>n(t).app_id=a),placeholder:"\u8BF7\u8F93\u5165AppID"},null,8,["modelValue"])])]),_:1}),e(_,{label:"AppSecret",prop:"app_secret"},{default:u(()=>[p("div",null,[p("div",$,[e(c,{modelValue:n(t).app_secret,"onUpdate:modelValue":o[1]||(o[1]=a=>n(t).app_secret=a),placeholder:"\u8BF7\u8F93\u5165AppSecret"},null,8,["modelValue"])])])]),_:1})]),_:1})]),_:1},8,["model"]),N((d(),U(v,null,{default:u(()=>[e(A,{type:"primary",onClick:g},{default:u(()=>[O("\u4FDD\u5B58")]),_:1})]),_:1})),[[h,["channel.open_setting/setConfig"]]])])}}});export{be as default};
|