03 2022 档案

摘要:let Socket = '' let setIntervalWesocketPush = null /** 建立websocket连接 @param {string} url ws地址 */ export const createSocket = url => { Socket && Socket 阅读全文
posted @ 2022-03-13 15:01 小白张先生 阅读(2213) 评论(0) 推荐(0) 编辑
摘要:mounted() { window.addEventListener('beforeunload', e ⇒ this.beforeunloadHandler(e)) window.addEventListener('unload', e ⇒ this.unloadHandler(e)) }, d 阅读全文
posted @ 2022-03-10 23:03 小白张先生 阅读(2514) 评论(0) 推荐(0) 编辑
摘要:import cookies from 'js-cookie' import store from './store' router.beforeEach(async(to, from, next) ⇒ { if (cookies.get('sessionId')) { if (to.path '/ 阅读全文
posted @ 2022-03-10 22:56 小白张先生 阅读(241) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示