apiConfig.0ceffe70.js 1.8 KB

1234567
  1. import{M as _,a3 as v,aD as h,m as y,am as o,o as C,a as w,_ as t,U as l,X as V,Y as S,aF as k,aG as I,b as i}from"./vue.60d2ee98.js";import{r as N}from"./ruleReg.ec1cc1f0.js";import{L as a,E as c,j as m,_ as T}from"./index.beaea096.js";const j=s=>(k("data-v-9e015179"),s=s(),I(),s),B=j(()=>i("div",{class:"card-header"},[i("span",null,"后端地址配置")],-1)),E=_({name:"systemConfig"}),M=_({...E,setup(s){const e=v({file:m.file,timer:{},labelPosition:"top"}),r=()=>{if(!N.emptyReg(e.file))return c.warning("资源地址为空");clearTimeout(e.timer),e.timer=setTimeout(()=>{m.file=e.file,a.set("file",e.file),c.success("保存成功"),window.location.reload()},500)};return h(),y(()=>{setTimeout(()=>{e.file=a.get("file")?a.get("file"):e.file},500)}),(R,n)=>{const p=o("el-input"),d=o("el-form-item"),f=o("el-col"),u=o("el-form"),g=o("el-button"),x=o("el-card");return C(),w("div",null,[t(x,{shadow:"hover",class:"mt20"},{header:l(()=>[B]),default:l(()=>[t(u,{"label-position":e.labelPosition,"label-width":"100px",style:{"max-width":"960px"},inline:!1},{default:l(()=>[t(f,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:l(()=>[t(d,{label:"接口地址"},{default:l(()=>[t(p,{modelValue:e.file,"onUpdate:modelValue":n[0]||(n[0]=b=>e.file=b)},null,8,["modelValue"])]),_:1})]),_:1}),V(` <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
  2. <el-form-item label="接口地址">
  3. <el-input v-model="state.host" />
  4. </el-form-item>
  5. </el-col> `)]),_:1},8,["label-position"]),t(g,{type:"primary",onClick:r},{default:l(()=>[S("保存")]),_:1})]),_:1})])}}});const P=T(M,[["__scopeId","data-v-9e015179"],["__file","C:/Users/89282/Desktop/xmgl_yjy/project-manager/h5/src/views/system/baseSettings/components/apiConfig.vue"]]);export{P as default};
  6. //# sourceMappingURL=apiConfig.0ceffe70.js.map