| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- import{u as w,r as a,m as B,o,g as i,w as y,d as A,F as L,h as u,j as c,al as l,L as s}from"./index-DqjK-Rnp.js";import"./Header.vue_vue_type_style_index_0_scoped_28cad075_lang-DIg_0fxw.js";import{u as C}from"./use-current-user-DyoOQryB.js";/* empty css */import U from"./ContentContainer-8LnRH6yN.js";const N={__name:"Xiaoshu",props:{},setup(p){const d=w(),{bus:_}=l,m=p,e=a(!1),n=a([]),f=s("XIAOSHU_URL"),h=s("WEBSOCKET_BASE_URL"),x=s("ASSETS_BASE_URL"),b={padding:0};return B(()=>{const t=C(),r=t.token,S={userName:t.username,token:r},g=JSON.stringify(S),k=`
- window.WEBSOCKET_BASE_URL = '${h}';
- window.ASSETS_BASE_URL = '${x}';
- localStorage.setItem('xintongxiaoshu', '${g}');
- `,E=`
- const box = document.querySelector('.xiaoshu-aside-left-menus-container');
- if(box){
- const btn = document.createElement('div');
- box.appendChild(btn);
- btn.innerHTML = '<span class="xiaoshu-aside-left-back-btn">返回</span>';
- btn.addEventListener('click', () => {
- window.$wujie?.bus.$emit("xiaoshuAsideBack");
- });
- }
- `,v=`
- .xiaoshu-aside-left-back-btn{
- width: 100%;
- height: 40px;
- line-height: 40px;
- text-align: center;
- background-color: #165dff;
- color: #fff;
- display: inline-block;
- cursor: pointer;
- }
- .xiaoshu-aside-left-menus-pop-container {}
- .xiaoshu-aside-left-menus-actions-container{
- display: none;
- }
- .user-popover.xiaoshu-aside-left-menus-pop-container>div.item{
- display: none;
- }
- .user-popover.xiaoshu-aside-left-menus-pop-container>header{
- padding-bottom: 0;
- border-bottom: none;
- }
- `;_.$on("xiaoshuAsideBack",function(){d.push("/")}),n.value=[{jsBeforeLoaders:[{content:k}]},{jsAfterLoaders:[{content:E}]},{cssAfterLoaders:[{content:v}]}],e.value=!0}),(t,r)=>(o(),i(U,{containerStyle:b},{default:y(()=>[e.value?u("",!0):(o(),A(L,{key:0},[],64)),e.value?(o(),i(c(l),{key:1,width:"100%",height:"100%",name:"xiaoshu",url:c(f),sync:!1,props:m,plugins:n.value},null,8,["url","props","plugins"])):u("",!0)]),_:1}))}};export{N as default};
|