var F=(u,s,e)=>new Promise((i,m)=>{var d=t=>{try{o(e.next(t))}catch(a){m(a)}},p=t=>{try{o(e.throw(t))}catch(a){m(a)}},o=t=>t.done?i(t.value):Promise.resolve(t.value).then(d,p);o((e=e.apply(u,s)).next())});import{P as B}from"./index.566277e5.js";import{aP as C,a as f,l as E,aQ as c,o as D,aR as A,p as r,j as n,q as l,i as g}from"./index.0d073eaa.js";import{t as k}from"./account.0cff3e42.js";import{C as _}from"./index.abdcab42.js";import"./index.78efd931.js";/* empty css              */import"./index.e9a84cba.js";import"./index.0972fd96.js";import"./useSize.bb4e5ce5.js";import"./eagerComputed.156e81ff.js";import"./useWindowSizeFn.ef20ece8.js";import"./useContentViewHeight.01b9d1c6.js";import"./ArrowLeftOutlined.90d2e05e.js";import"./index.8680e4c4.js";import"./transButton.8c1b1a4f.js";import"./index.aa6b7013.js";import"./index.1d29734e.js";import"./Col.a2eadc78.js";import"./useFlexGapSupport.474c31b7.js";import"./useRefs.e81831e2.js";import"./PlusOutlined.64d8e001.js";const y=f({name:"TestSessionTimeout",components:{ACardGrid:_.Grid,ACard:_,PageWrapper:B},setup(){const u=E();function s(){return F(this,null,function*(){u.setToken(void 0),u.setSessionTimeout(!0)})}function e(){return F(this,null,function*(){try{yield k()}catch(i){console.log("\u63A5\u53E3\u8BBF\u95EE\u9519\u8BEF\uFF1A",i.message||"\u9519\u8BEF")}})}return{test1:s,test2:e}}}),h=l("HttpStatus == 401"),x=g("span",null,null,-1),T=l("Response.code == 401");function P(u,s,e,i,m,d){const p=c("a-button"),o=c("a-card-grid"),t=c("a-card"),a=c("PageWrapper");return D(),A(a,{title:"\u767B\u5F55\u8FC7\u671F\u793A\u4F8B",content:"\u7528\u6237\u767B\u5F55\u8FC7\u671F\u793A\u4F8B\uFF0C\u4E0D\u518D\u8DF3\u8F6C\u767B\u5F55\u9875\uFF0C\u76F4\u63A5\u751F\u6210\u9875\u9762\u8986\u76D6\u5F53\u524D\u9875\u9762\uFF0C\u65B9\u4FBF\u4FDD\u6301\u8FC7\u671F\u524D\u7684\u7528\u6237\u72B6\u6001\uFF01"},{default:r(()=>[n(t,{title:"\u8BF7\u70B9\u51FB\u4E0B\u9762\u7684\u6309\u94AE\u8BBF\u95EE\u6D4B\u8BD5\u63A5\u53E3",extra:"\u6240\u8BBF\u95EE\u7684\u63A5\u53E3\u4F1A\u8FD4\u56DEToken\u8FC7\u671F\u54CD\u5E94"},{default:r(()=>[n(o,{style:{width:"50%","text-align":"center"}},{default:r(()=>[n(p,{type:"primary",onClick:u.test1},{default:r(()=>[h]),_:1},8,["onClick"])]),_:1}),n(o,{style:{width:"50%","text-align":"center"}},{default:r(()=>[x,n(p,{class:"ml-4",type:"primary",onClick:u.test2},{default:r(()=>[T]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})}var X=C(y,[["render",P]]);export{X as default};
