feat: 管理后台文件列表支持下载文件,格式化过期时间

This commit is contained in:
Yanlongli
2024-03-29 17:55:18 +08:00
parent fd5673ac68
commit eda5f71fc2
24 changed files with 152 additions and 40 deletions
+3
View File
@@ -14,6 +14,9 @@ instance.interceptors.request.use(
});
instance.interceptors.response.use(
(response:any) => {
if (response.status === 200 && response.config.url === '/admin/file/download') {
return response;
}
if (response.data.code === 200) {
return response.data;
} else {