fix: 🧩 修复测试bug
This commit is contained in:
@@ -73,6 +73,15 @@ class RequestHttp {
|
|||||||
tryHideFullScreenLoading();
|
tryHideFullScreenLoading();
|
||||||
//获取导出表格名称
|
//获取导出表格名称
|
||||||
getDispositionName(response);
|
getDispositionName(response);
|
||||||
|
// 获取响应头中的 Authorization 信息
|
||||||
|
const authorization = response.headers["Authorization"];
|
||||||
|
if (authorization) {
|
||||||
|
// 可以在这里更新用户的 token 信息
|
||||||
|
const userStore = useUserStore();
|
||||||
|
userStore.setToken(authorization);
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
|
||||||
//0正常,1非正常
|
//0正常,1非正常
|
||||||
if (data.code == 1) {
|
if (data.code == 1) {
|
||||||
ElMessage.error(data.msg);
|
ElMessage.error(data.msg);
|
||||||
|
|||||||
@@ -92,8 +92,9 @@
|
|||||||
:placeholder="item.placeholder"
|
:placeholder="item.placeholder"
|
||||||
clearable
|
clearable
|
||||||
:disabled="item.disabled"
|
:disabled="item.disabled"
|
||||||
format="YYYY/MM/DD hh:mm:ss"
|
format="YYYY-MM-DD HH:mm:ss"
|
||||||
value-format="YYYY-MM-DD hh:mm:ss"
|
date-format="MMM DD, YYYY"
|
||||||
|
time-format="HH:mm"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="item.type === 'radio'">
|
<template v-if="item.type === 'radio'">
|
||||||
|
|||||||
Reference in New Issue
Block a user