|
@@ -1,4 +1,4 @@
|
|
|
-import{W as U,f as l,u as $,p as m,o as r,y as j,c as T,m as p,P as q,V as f}from"./vue-vendor-DFp1TAzT.js";import{aR as g,R as t,aS as O}from"./index-L9Xzphqx.js";import I from"./ContentContainer-eVD6UBPf.js";import{u as M}from"./use-logout-DPOZFp44.js";import{u as P}from"./use-current-user-BouOBpWi.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./login-Cldm8evF.js";const J={__name:"Xiaoshu",props:{},setup(h){const _=U(),b=M(),{bus:c}=g,x=h,s=l(!1),u=l([]),y=t("XIAOSHU_URL"),v=t("WEBSOCKET_BASE_URL"),k=t("API_BASE_URL"),S=t("ASSETS_BASE_URL"),w={padding:0};function L(){const e={"system:conversation:board":"/chat/board","system:conversation:hisroty":"/chat/history","system:menu:intelligent":"/intelligent","system:menu:knowledge":"/knowledge","system:menu:model":"/model","system:menu:permission":"/permission","system:menu:conversation":"/chat/qa","system:conversation:qa":"/chat/qa","system:group":"/permission/group","system:dept":"/permission/org","system:role":"/permission/role","system:user":"/permission/account","system:menu":"/permission/resource"};let o="";for(let n in e)if(O(n)){o=e[n];break}return o}return $(()=>{const e=P(),o=e.token,d={userName:e.username,token:o},E=JSON.stringify(d),i=L(),A=`
|
|
|
|
|
|
|
+import{W as R,f as l,u as $,p as m,o as r,y as j,c as T,m as p,P as q,V as f}from"./vue-vendor-DFp1TAzT.js";import{aR as g,z as t,aS as O}from"./index-035IyBW4.js";import I from"./ContentContainer-DXnSvCen.js";import{u as M}from"./use-logout-COjg3L-W.js";import{u as P}from"./use-current-user-ES3q_Tub.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./login-BTc-SV7l.js";const J={__name:"Xiaoshu",props:{},setup(h){const _=R(),b=M(),{bus:c}=g,x=h,s=l(!1),u=l([]),y=t("XIAOSHU_URL"),v=t("WEBSOCKET_BASE_URL"),k=t("API_BASE_URL"),S=t("ASSETS_BASE_URL"),w={padding:0};function L(){const e={"system:conversation:board":"/chat/board","system:conversation:hisroty":"/chat/history","system:menu:intelligent":"/intelligent","system:menu:knowledge":"/knowledge","system:menu:model":"/model","system:menu:permission":"/permission","system:menu:conversation":"/chat/qa","system:conversation:qa":"/chat/qa","system:group":"/permission/group","system:dept":"/permission/org","system:role":"/permission/role","system:user":"/permission/account","system:menu":"/permission/resource"};let o="";for(let n in e)if(O(n)){o=e[n];break}return o}return $(()=>{const e=P(),o=e.token,d={userName:e.username,token:o},E=JSON.stringify(d),i=L(),A=`
|
|
|
window.WEBSOCKET_BASE_URL = '${v}';
|
|
window.WEBSOCKET_BASE_URL = '${v}';
|
|
|
window.API_BASE_URL = '${k}';
|
|
window.API_BASE_URL = '${k}';
|
|
|
window.ASSETS_BASE_URL = '${S}';
|
|
window.ASSETS_BASE_URL = '${S}';
|
|
@@ -119,11 +119,11 @@ import{W as U,f as l,u as $,p as m,o as r,y as j,c as T,m as p,P as q,V as f}fro
|
|
|
`,N=`
|
|
`,N=`
|
|
|
// 显示 loading 层
|
|
// 显示 loading 层
|
|
|
document.body.insertAdjacentHTML('afterbegin', '<div class="xiaoshu-loading-container"><div class="xiaoshu-loading-spinner"></div></div>');
|
|
document.body.insertAdjacentHTML('afterbegin', '<div class="xiaoshu-loading-container"><div class="xiaoshu-loading-spinner"></div></div>');
|
|
|
-`,R=`
|
|
|
|
|
|
|
+`,U=`
|
|
|
// 页面加载完成后,移除 loading 层
|
|
// 页面加载完成后,移除 loading 层
|
|
|
window.addEventListener('load', function() {
|
|
window.addEventListener('load', function() {
|
|
|
const loadingContainer = document.querySelector('.xiaoshu-loading-container');
|
|
const loadingContainer = document.querySelector('.xiaoshu-loading-container');
|
|
|
if (loadingContainer) {
|
|
if (loadingContainer) {
|
|
|
loadingContainer.style.display = 'none';
|
|
loadingContainer.style.display = 'none';
|
|
|
}
|
|
}
|
|
|
- });`;c.$on("xiaoshuAsideBack",function(){i&&_.push(i)}),c.$on("xiaoshuAsideLogout",function(){b()}),u.value=[{jsBeforeLoaders:[{content:A},{content:N}]},{jsAfterLoaders:[{content:a},{content:R}]},{cssAfterLoaders:[{content:B},{content:C}]}],s.value=!0}),(e,o)=>(r(),m(I,{containerStyle:w},{default:j(()=>[s.value?p("",!0):(r(),T(q,{key:0},[],64)),s.value?(r(),m(f(g),{key:1,width:"100%",height:"100%",name:"xiaoshu",url:f(y),sync:!1,props:x,plugins:u.value},null,8,["url","props","plugins"])):p("",!0)]),_:1}))}};export{J as default};
|
|
|
|
|
|
|
+ });`;c.$on("xiaoshuAsideBack",function(){i&&_.push(i)}),c.$on("xiaoshuAsideLogout",function(){b()}),u.value=[{jsBeforeLoaders:[{content:A},{content:N}]},{jsAfterLoaders:[{content:a},{content:U}]},{cssAfterLoaders:[{content:B},{content:C}]}],s.value=!0}),(e,o)=>(r(),m(I,{containerStyle:w},{default:j(()=>[s.value?p("",!0):(r(),T(q,{key:0},[],64)),s.value?(r(),m(f(g),{key:1,width:"100%",height:"100%",name:"xiaoshu",url:f(y),sync:!1,props:x,plugins:u.value},null,8,["url","props","plugins"])):p("",!0)]),_:1}))}};export{J as default};
|