Compare commits

..

2 Commits

Author SHA1 Message Date
d1bb49c208 🎨优化如果一个页面退出了,其他都退出 2024-06-07 17:09:21 +08:00
92f5f26ad5 🎨调整客户端列表卡片样式 2024-06-07 14:44:47 +08:00
2 changed files with 10 additions and 2 deletions

View File

@@ -135,6 +135,14 @@ class PureHttp {
$error.isCancelRequest = Axios.isCancel($error); $error.isCancelRequest = Axios.isCancel($error);
// 关闭进度条动画 // 关闭进度条动画
NProgress.done(); NProgress.done();
if ($error.response.status === 401) {
router.replace({
path: "/login",
query: {
redirect: router.currentRoute.value.fullPath
}
});
}
// 所有的响应异常 区分来源为取消请求/非取消请求 // 所有的响应异常 区分来源为取消请求/非取消请求
return Promise.reject($error); return Promise.reject($error);
} }

View File

@@ -309,10 +309,10 @@ getClientsApi(clientSearchForm.value);
</div> </div>
<div class="content"> <div class="content">
<el-card body-style="padding: inherit" shadow="hover"> <el-card body-style="padding: inherit" shadow="hover">
<div class="flex flex-wrap gap-4"> <div class="flex flex-wrap gap-4" style="display: flex;justify-content: center;">
<el-card <el-card
v-for="val in clientsList.data" v-for="val in clientsList.data"
style="width: 540px" style="float: left; width: 500px"
shadow="hover" shadow="hover"
> >
<template #header> <template #header>