ScopeSentry/static/assets/SubdomainDictionary-YSvHCLr...

2 lines
1.3 KiB
JavaScript
Raw Normal View History

2024-06-17 14:41:04 +00:00
import{d as a,r as s,a6 as e,o as t,i as o,w as n,e as i,a as l,f as d,t as u,I as r,H as c,l as m,_ as f}from"./index-rxu9Faad.js";import{E as p,a as v}from"./el-col-BKZxb-_G.js";import{E as y}from"./el-card-C0XrHsE5.js";import{j as h,o as _,T as w}from"./index-C6ahflub.js";import{g as x,s as j}from"./index-B9E6KFL3.js";import"./index-Cr6_Qzhf.js";const b=f(a({__name:"SubdomainDictionary",setup(a){const{t:f}=m(),b=s(""),g=[h(),_];e((async()=>{try{const a=await x();200===a.code&&(b.value=a.data.dict)}catch(a){}}));const D=async()=>{window.confirm("Do you want to save the data?")&&await V()},V=async()=>{E.value=!0;200==(await j(b.value)).code&&(E.value=!1)},E=s(!1);return(a,s)=>(t(),o(l(y),{shadow:"never",class:"mb-20px"},{header:n((()=>[i(l(v),null,{default:n((()=>[i(l(p),{span:3,style:{height:"100%"}},{default:n((()=>[d("span",null,u(l(f)("router.subdomainDictionary")),1)])),_:1}),i(l(p),{span:2,offset:19},{default:n((()=>[i(l(r),{type:"primary",onClick:D,onLoading:E.value},{default:n((()=>[c(u(l(f)("common.save")),1)])),_:1},8,["onLoading"])])),_:1})])),_:1})])),default:n((()=>[i(l(w),{modelValue:b.value,"onUpdate:modelValue":s[0]||(s[0]=a=>b.value=a),style:{height:"800px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,extensions:g},null,8,["modelValue"])])),_:1}))}}),[["__scopeId","data-v-f8c99656"]]);export{b as default};