2 lines
1.8 KiB
JavaScript
2 lines
1.8 KiB
JavaScript
|
import{d as S,O as k,r as d,n as I,aL as q,s as N,a4 as m,N as e,y as D,h as R,c as B,a as n,t as l,u as s,e as o,w as a,X as F,W as L,$ as V,Y as U,a0 as $,p as j,g as M,_ as O}from"./index-4dcc0234.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";import{p as P}from"./sys-8ead7f22.js";const W=""+new URL("preview-52aad803.png",import.meta.url).href,X=r=>(j("data-v-13e767fe"),r=r(),M(),r),Y={class:"main-container"},z={class:"flex ml-[18px] justify-between items-center mt-[20px]"},A={class:"text-[20px]"},G=X(()=>n("img",{class:"w-[500px]",src:W,alt:""},null,-1)),H=S({__name:"config",setup(r){const f=k().meta.title,p=d(!0),t=I({is_open:!1,request_url:""}),v=d();P().then(c=>{t.request_url=c.data.web_url+"/",p.value=!1});const{copy:g,isSupported:w,copied:i}=q(),h=c=>{if(!w.value){m({message:e("notSupportCopy"),type:"warning"});return}g(c)};N(i,()=>{i.value&&m({message:e("copySuccess"),type:"success"})});const y=()=>{window.open(t.request_url)};return(c,_)=>{const u=F,x=L,b=V,C=U,E=$;return D((R(),B("div",Y,[n("div",z,[n("span",A,l(s(f)),1)]),o(C,{model:t,"label-width":"150px",ref_key:"formRef",ref:v,class:"page-form"},{default:a(()=>[o(b,{class:"box-card !border-none",shadow:"never"},{default:a(()=>[o(u,{label:s(e)("preview"),prop:"weapp_name"},{default:a(()=>[G]),_:1},8,["label"]),o(u,{label:s(e)("PCDomainName")},{default:a(()=>[o(x,{"model-value":t.request_url,class:"input-width",readonly:!0},{append:a(()=>[n("div",{class:"cursor-pointer",onClick:_[0]||(_[0]=K=>h(t.request_url))},l(s(e)("copy")),1)]),_:1},8,["model-value"]),n("span",{class:"ml-2 cursor-pointer visit-btn",onClick:y},l(s(e)("clickVisit")),1)]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])])),[[E,p.value]])}}});const ae=O(H,[["__scopeId","data-v-13e767fe"]]);export{ae as default};
|