fix: 🧩 修复测试bug

This commit is contained in:
2025-03-26 17:17:30 +08:00
parent 5ccdeaff58
commit a66092dea0
2 changed files with 12 additions and 2 deletions

View File

@@ -73,6 +73,15 @@ class RequestHttp {
tryHideFullScreenLoading();
//获取导出表格名称
getDispositionName(response);
// 获取响应头中的 Authorization 信息
const authorization = response.headers["Authorization"];
if (authorization) {
// 可以在这里更新用户的 token 信息
const userStore = useUserStore();
userStore.setToken(authorization);
return data;
}
//0正常,1非正常
if (data.code == 1) {
ElMessage.error(data.msg);