import{v as b,w as f}from"./setting.644fa418.js";import{d as w,b as y,c as l,e as k,f as A,h as t,i as u,u as o,g as m,m as B,E,R as F,S as V,_ as v}from"./index.0308b213.js";const C=d=>(F("data-v-56d1abcc"),d=d(),V(),d),x={class:"setting-form"},S=C(()=>m("div",{class:"tn-form-item__tips"},"\u683C\u5F0F: web\u670D\u52A1,\u5B89\u5168\u5BC6\u94A5,webjsapi \u591A\u4E2A\u6362\u884C",-1)),h={class:"operation-btn"},D=B("\u63D0\u4EA4"),I=w({setup(d){const e=y({map_type:1,gaode_key_web:"",gaode_secret_web:"",gaode_key:"",google_key:""}),i=()=>{b(e).then(()=>{p(),E.success("\u8BBE\u7F6E\u6210\u529F")})},p=()=>{f().then(_=>{console.log("res",_),e.gaode_key_web=_.data.gaode_key_web||"",e.gaode_secret_web=_.data.gaode_secret_web||"",e.gaode_key=_.data.gaode_key||""})};return p(),(_,a)=>{const n=l("el-input"),c=l("el-form-item"),r=l("el-form"),g=l("el-button");return k(),A("div",x,[t(r,{model:o(e),"label-width":"170px"},{default:u(()=>[t(c,{label:"\u9AD8\u5FB7\u5730\u56FEweb\u7AEFkey"},{default:u(()=>[t(n,{modelValue:o(e).gaode_key_web,"onUpdate:modelValue":a[0]||(a[0]=s=>o(e).gaode_key_web=s)},null,8,["modelValue"])]),_:1}),t(c,{label:"\u9AD8\u5FB7\u5730\u56FEweb\u7AEF\u5B89\u5168\u5BC6\u94A5"},{default:u(()=>[t(n,{modelValue:o(e).gaode_secret_web,"onUpdate:modelValue":a[1]||(a[1]=s=>o(e).gaode_secret_web=s)},null,8,["modelValue"])]),_:1}),t(c,{label:"\u9AD8\u5FB7\u5730\u56FE\u5BC6\u94A5"},{default:u(()=>[t(n,{modelValue:o(e).gaode_key,"onUpdate:modelValue":a[2]||(a[2]=s=>o(e).gaode_key=s),type:"textarea",rows:7},null,8,["modelValue"]),S]),_:1})]),_:1},8,["model"]),m("div",h,[t(g,{type:"primary",onClick:i},{default:u(()=>[D]),_:1})])])}}});const U=v(I,[["__scopeId","data-v-56d1abcc"]]);export{U as default};
