apiConfig.dcd951d2.js 1.5 KB

123
  1. import{r as v}from"./ruleReg.877e9378.js";import{L as s,E as i,k as _,_ as h}from"./index.f6b6c69f.js";import{M as m,a3 as w,aD as y,m as C,am as o,o as V,a as k,_ as t,U as a,Y as I,aF as S,aG as T,b as c}from"./vue.aade88c7.js";const B=l=>(S("data-v-948053da"),l=l(),T(),l),E=B(()=>c("div",{class:"card-header"},[c("span",null,"后端地址配置")],-1)),M=m({name:"systemConfig"}),N=m({...M,setup(l){const e=w({file:_.file,timer:{},labelPosition:"top"}),d=()=>{if(!v.emptyReg(e.file))return i.warning("资源地址为空");clearTimeout(e.timer),e.timer=setTimeout(()=>{_.file=e.file,s.set("file",e.file),i.success("保存成功"),window.location.reload()},500)};return y(),C(()=>{setTimeout(()=>{e.file=s.get("file")?s.get("file"):e.file},500)}),(R,n)=>{const r=o("el-input"),p=o("el-form-item"),f=o("el-col"),u=o("el-form"),g=o("el-button"),x=o("el-card");return V(),k("div",null,[t(x,{shadow:"hover",class:"mt20"},{header:a(()=>[E]),default:a(()=>[t(u,{"label-position":e.labelPosition,"label-width":"100px",style:{"max-width":"960px"},inline:!1},{default:a(()=>[t(f,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:a(()=>[t(p,{label:"接口地址"},{default:a(()=>[t(r,{modelValue:e.file,"onUpdate:modelValue":n[0]||(n[0]=b=>e.file=b)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["label-position"]),t(g,{type:"primary",onClick:d},{default:a(()=>[I("保存")]),_:1})]),_:1})])}}});const D=h(N,[["__scopeId","data-v-948053da"]]);export{D as default};
  2. //# sourceMappingURL=apiConfig.dcd951d2.js.map