src/api/index.js
@@ -48,12 +48,14 @@ okText: '知道了', onOk: () => { window.GLOB.$error = false if (!/#\/login/.test(window.location.href)) { sessionStorage.clear() if (!!(window.history && window.history.pushState)) { window.history.replaceState(null, null, window.location.href.split('#')[0] + '#/login') window.location.reload() } } } }) }