03 2022 档案
摘要:let Socket = '' let setIntervalWesocketPush = null /** 建立websocket连接 @param {string} url ws地址 */ export const createSocket = url => { Socket && Socket
阅读全文
摘要:mounted() { window.addEventListener('beforeunload', e ⇒ this.beforeunloadHandler(e)) window.addEventListener('unload', e ⇒ this.unloadHandler(e)) }, d
阅读全文
摘要:import cookies from 'js-cookie' import store from './store' router.beforeEach(async(to, from, next) ⇒ { if (cookies.get('sessionId')) { if (to.path '/
阅读全文