import{g as f}from"./index.0d71219c.js";import{d as F,b as E,c as u,e as g,f as b,h as t,i as o,u as l,g as B,m as D,N as h,b4 as x,E as s,_ as w}from"./index.0308b213.js";const A={class:"setting-form"},k={class:"operation-btn"},v=D("\u83B7\u53D6"),y=F({setup(C){const a=E({web_path:""}),_=()=>{h.confirm("\u83B7\u53D6\u8FC7\u7A0B\u9700\u8981\u65F6\u95F4\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85 \u662F\u5426\u7EE7\u7EED\uFF1F","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{const c=x.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});f(a).then(e=>{if(console.log("res",e),e.code==1){let n=e.data;window.open(n),s.success("\u83B7\u53D6\u6210\u529F")}else s.error("\u83B7\u53D6\u5931\u8D25");c.close()})}).catch(()=>{s.info("\u5DF2\u53D6\u6D88")})};return(c,e)=>{const n=u("el-input"),r=u("el-form-item"),d=u("el-form"),p=u("el-button"),i=u("el-card");return g(),b("div",A,[t(i,{shadow:"always",style:{"margin-top":"20px"}},{default:o(()=>[t(d,{"label-width":"200px"},{default:o(()=>[t(r,{label:"\u7F51\u7AD9\u76EE\u5F55\u6587\u4EF6(\u7528\u4E8E\u81EA\u52A8\u66FF\u6362)"},{default:o(()=>[t(n,{modelValue:l(a).web_path,"onUpdate:modelValue":e[0]||(e[0]=m=>l(a).web_path=m),placeholder:"\u7F51\u7AD9\u76EE\u5F55\u6587\u4EF6(\u7528\u4E8E\u81EA\u52A8\u66FF\u6362)"},null,8,["modelValue"])]),_:1})]),_:1}),B("div",k,[t(p,{type:"primary",onClick:_},{default:o(()=>[v]),_:1})])]),_:1})])}}});const T=w(y,[["__scopeId","data-v-513f183e"]]);export{T as default};
