Files
----/后端源码/yifan.action-ai.cn/index/js/InternalApp.mkc3M_YJ.js

2 lines
1.4 KiB
JavaScript

import{i as a,a7 as e}from"./element-plus.C1XeB8_q.js";import{J as s,m as t,t as r,n as l,_ as i,a1 as n,o as u,$ as p,a0 as o,a8 as f,dZ as d,r as c,j as m,S as v}from"./.pnpm.BudmgPu7.js";import{g as _}from"./index.DvZY56Zp.js";import{_ as h}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./codemirror.BdleaLZh.js";const y={class:"internal-app-container"},q={class:"internal-app-content"},j=["src"],V={key:0,class:"loading-overlay"},w=h(s({name:"InternalApp",inheritAttrs:!1,__name:"InternalApp",setup(s){const h=d(),w=_(),g=c(),P=c(!0),x=m(()=>h.query.url),A=m(()=>h.query.appName);function I(){P.value=!1}return t(()=>h.query.url,a=>{a&&g.value&&(P.value=!0,g.value.src=a)}),r(()=>{A.value&&l(()=>{const a=w.visitedViews.find(a=>a.path===h.path);a&&a.title!==A.value&&w.updateVisitedView({...a,title:A.value,fullPath:h.fullPath,query:h.query})})}),t(()=>A.value,a=>{if(a){const e=w.visitedViews.find(a=>a.path===h.path);e&&w.updateVisitedView({...e,title:a,fullPath:h.fullPath,query:h.query})}}),(s,t)=>{const r=a;return v(),i("div",y,[n("div",q,[n("iframe",{ref_key:"iframeRef",ref:g,src:u(x),class:"internal-app-iframe",frameborder:"0",allowfullscreen:"",onLoad:I},null,40,j),u(P)?(v(),i("div",V,[p(r,{class:"loading-icon"},{default:o(()=>[p(u(e))]),_:1}),t[0]||(t[0]=n("span",null,"加载中...",-1))])):f("",!0)])])}}}),[["__scopeId","data-v-f92c86f7"]]);export{w as default};