Closed gnyuan closed 2 months ago
有没有人遇到这个情况,当后端token过期后,这里死循环了。把后端token有效期设置为几秒,可以触发这个问题。
https://github.com/vbenjs/vue-vben-admin/blob/cec5c1128961e59363a9573d7360020a18737b6a/src/store/modules/user.ts#L98C18-L98C42
好像找到后端问题了,logout或者各类登录报错返回时,要传入{‘token’:'', 'userInfo': {}}让前端主动清空它的token?
有没有人遇到这个情况,当后端token过期后,这里死循环了。把后端token有效期设置为几秒,可以触发这个问题。
https://github.com/vbenjs/vue-vben-admin/blob/cec5c1128961e59363a9573d7360020a18737b6a/src/store/modules/user.ts#L98C18-L98C42