UNPKG

sense-jump-login

Version:

根据请求返回的状态码跳转登录页

1 lines 588 B
(()=>{"use strict";var e,o={390:(e,o,t)=>{function r(e,o){if(401!==e.response.status)return e;sessionStorage.setItem("locationCache",window.location.href),o?window.location.replace(e.response.data.authurl):location.reload()}t.d(o,{Z:()=>r})}},t={};function r(e){if(t[e])return t[e].exports;var n=t[e]={exports:{}};return o[e](n,n.exports,r),n.exports}r.d=(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),e=r(390),document.getElementById("btn").onclick=()=>{console.log(1),(0,e.Z)()}})();