全栈小学生 26524c4bf5 update admin
2023-08-12 16:21:13 +08:00

2 lines
2.6 KiB
JavaScript

import{d as S,r as u,R as k,w as I,Q as R,e as q,f as B,g as a,B as n,u as t,y as s,x as r,bl as D,bm as N}from"./base-04829be5.js";/* empty css *//* empty css *//* empty css *//* empty css */import{t as e}from"./index-043d021e.js";import{w as F}from"./sys-f9859bed.js";import{E as V}from"./index-30df2c14.js";import{u as L,b as U}from"./vue-router-fee568b2.js";import{a as d}from"./index-92283b18.js";import{a as j,E as M}from"./index-6bd50bb5.js";import{E as P}from"./index-db9b8d96.js";import{E as Q}from"./index-88566e4e.js";import{v as $}from"./directive-013f0a4e.js";import{_ as z}from"./_plugin-vue_export-helper-c27b6911.js";import"./common-111e3797.js";import"./common-2cf17469.js";import"./index-faea7bd5.js";import"./storage-1a3ddb14.js";import"./index-7e933ae4.js";import"./index-236cb599.js";import"./typescript-defaf979.js";import"./index-a2524300.js";import"./castArray-11aea762.js";import"./error-78e43d3e.js";import"./index-de053f2e.js";import"./_Uint8Array-99b916e9.js";import"./_initCloneObject-e5a1aa13.js";import"./event-9519ab40.js";import"./index-d7f4b4bb.js";const A=""+new URL("preview-52aad803.png",import.meta.url).href,G=i=>(D("data-v-b13f6124"),i=i(),N(),i),H={class:"main-container"},J={class:"flex ml-[18px] justify-between items-center mt-[20px]"},K={class:"text-[20px]"},O=G(()=>a("img",{class:"w-[500px]",src:A,alt:""},null,-1)),T=S({__name:"config",setup(i){const f=L().meta.title,m=u(!0),o=k({is_open:!1,request_url:""}),v=u();U(),F().then(p=>{o.request_url=p.data.web_url+"/",m.value=!1});const{copy:w,isSupported:g,copied:l}=V(),b=p=>{if(!g.value){d({message:e("notSupportCopy"),type:"warning"});return}w(p)};I(l,()=>{l.value&&d({message:e("copySuccess"),type:"success"})});const x=()=>{window.open(o.request_url)};return(p,c)=>{const _=j,y=P,h=Q,E=M,C=$;return R((q(),B("div",H,[a("div",J,[a("span",K,n(t(f)),1)]),s(E,{model:o,"label-width":"150px",ref_key:"formRef",ref:v,class:"page-form"},{default:r(()=>[s(h,{class:"box-card !border-none",shadow:"never"},{default:r(()=>[s(_,{label:t(e)("preview"),prop:"weapp_name"},{default:r(()=>[O]),_:1},8,["label"]),s(_,{label:t(e)("PCDomainName")},{default:r(()=>[s(y,{"model-value":o.request_url,class:"input-width",readonly:!0},{append:r(()=>[a("div",{class:"cursor-pointer",onClick:c[0]||(c[0]=X=>b(o.request_url))},n(t(e)("copy")),1)]),_:1},8,["model-value"]),a("span",{class:"ml-2 cursor-pointer visit-btn",onClick:x},n(t(e)("clickVisit")),1)]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])])),[[C,m.value]])}}});const Re=z(T,[["__scopeId","data-v-b13f6124"]]);export{Re as default};