ci: 集成icon和layout

This commit is contained in:
何嘉悦
2025-05-17 00:09:12 +08:00
parent 229fab833c
commit b5cddb0041
1142 changed files with 11146 additions and 1533 deletions
+2 -1
View File
@@ -1,8 +1,8 @@
import type { HookFetchPlugin } from 'hook-fetch';
import { useUserStore } from '@/store';
import { ElMessage } from 'element-plus';
import hookFetch from 'hook-fetch';
import { sseTextDecoderPlugin } from 'hook-fetch/plugins';
import { useUserStore } from '@/store';
interface BaseResponse {
code: number;
@@ -34,6 +34,7 @@ function jwtPlugin(): HookFetchPlugin<BaseResponse> {
return response;
}
if (response.result?.code === 401) {
// 如果没有权限,也不退出,则是弹框提示登录
userStore.logout();
}
ElMessage.error(response.result?.msg);