兵马未动 粮草先行

This commit is contained in:
RISE
2026-02-08 23:47:50 +08:00
parent 00a005e65f
commit 2670340af3
47 changed files with 3909 additions and 257 deletions

View File

@@ -156,8 +156,10 @@ export function useTable(options?: BasicTableProps) {
if (state.onLoaded) await state.onLoaded(state);
if (state.onCascaded) await state.onCascaded(state);
} catch (err: any) {
// 捕获异常并显示错误提示
ElMessage.error(err.msg || err.data.msg);
// 全局拦截器已展示过错误时不再重复弹窗
if (!err?._messageShown) {
ElMessage.error(err?.msg || err?.data?.msg || '请求失败');
}
} finally {
// 结束加载数据设置state.loading为false
state.loading = false;