mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-12-09 14:40:27 +08:00
chore: update
This commit is contained in:
1
dist/static/js/frameView-BrdcMqPC.js
vendored
Normal file
1
dist/static/js/frameView-BrdcMqPC.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
import{d as g,U as x,r as i,af as w,u as n,w as I,o as R,v as k,z as S,e as V,x as B,g as E,q as L,_ as P}from"./index-hEhvroCV.js";const b=["element-loading-text"],D=["src"],q=g({name:"FrameView",__name:"frameView",props:{frameInfo:{}},setup(v){var m,u,d;const o=v,{t:h}=x(),f=i(!0),t=w(),r=i(""),l=i(null);(m=n(t.meta))!=null&&m.frameSrc&&(r.value=(u=n(t.meta))==null?void 0:u.frameSrc),((d=n(t.meta))==null?void 0:d.frameLoading)===!1&&c();function c(){f.value=!1}function p(){L(()=>{const e=n(l);if(!e)return;const a=e;a.attachEvent?a.attachEvent("onload",()=>{c()}):e.onload=()=>{c()}})}return I(()=>t.fullPath,e=>{var a,s,_;t.name==="Redirect"&&e.includes((a=o.frameInfo)==null?void 0:a.fullPath)&&(r.value=e,f.value=!0),((s=o.frameInfo)==null?void 0:s.fullPath)===e&&(r.value=(_=o.frameInfo)==null?void 0:_.frameSrc)}),R(()=>{p()}),(e,a)=>{const s=k("loading");return S((V(),B("div",{class:"frame","element-loading-text":n(h)("status.hsLoad")},[E("iframe",{ref_key:"frameRef",ref:l,src:r.value,class:"frame-iframe"},null,8,D)],8,b)),[[s,f.value]])}}}),z=P(q,[["__scopeId","data-v-355ebebf"]]);export{z as default};
|
||||
Reference in New Issue
Block a user