1234567 |
- import{e as r,G as v,ah as b,o as C,a0 as o,g as w,h as y,A as t,q as l,x as V,y as S,aE as k,aF as I,j as i}from"./vue.e266cb73.js";import{r as N}from"./ruleReg.82229ae1.js";import{L as a}from"./storage.acfc8920.js";import{c as m}from"./config.3668004a.js";import"./mitt.7f99bbc0.js";import{ad as c}from"./index.dcc65bf7.js";import{_ as T}from"./_plugin-vue_export-helper.c27b6911.js";import"./index.f84209b0.js";const B=s=>(k("data-v-9e015179"),s=s(),I(),s),E=B(()=>i("div",{class:"card-header"},[i("span",null,"后端地址配置")],-1)),R=r({name:"systemConfig"}),L=r({...R,setup(s){const e=v({file:m.file,timer:{},labelPosition:"top"}),_=()=>{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 b(),C(()=>{setTimeout(()=>{e.file=a.get("file")?a.get("file"):e.file},500)}),(M,n)=>{const p=o("el-input"),f=o("el-form-item"),d=o("el-col"),u=o("el-form"),g=o("el-button"),x=o("el-card");return w(),y("div",null,[t(x,{shadow:"hover",class:"mt20"},{header:l(()=>[E]),default:l(()=>[t(u,{"label-position":e.labelPosition,"label-width":"100px",style:{"max-width":"960px"},inline:!1},{default:l(()=>[t(d,{xs:24,sm:12,md:12,lg:12,xl:12,class:"mb20"},{default:l(()=>[t(f,{label:"接口地址"},{default:l(()=>[t(p,{modelValue:e.file,"onUpdate:modelValue":n[0]||(n[0]=h=>e.file=h)},null,8,["modelValue"])]),_:1})]),_:1}),V(` <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
- <el-form-item label="接口地址">
- <el-input v-model="state.host" />
- </el-form-item>
- </el-col> `)]),_:1},8,["label-position"]),t(g,{type:"primary",onClick:_},{default:l(()=>[S("保存")]),_:1})]),_:1})])}}});const z=T(L,[["__scopeId","data-v-9e015179"],["__file","C:/Users/89282/Desktop/lechang_storage/lechang_storage/vue-next-admin/src/views/system/baseSettings/components/apiConfig.vue"]]);export{z as default};
- //# sourceMappingURL=apiConfig.55be364e.js.map
|