mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-08-05 22:03:36 +08:00
🐛 fix(ui): 修复新版数据视图布局与 AI 面板加载容错
- 修复新版数据视图底部分页、列快速定位与当前页查找的对齐和压缩问题 - 优化窄屏下 AI 面板布局,避免挤压工作区并增加懒加载失败重试兜底 - 补充窗口运行时、AI 面板布局与 UI 回归测试,更新相关样式快照
This commit is contained in:
10
frontend/src/utils/wailsRuntime.ts
Normal file
10
frontend/src/utils/wailsRuntime.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export const safeWindowRuntimeCall = async <T>(
|
||||
invoke: () => T | Promise<T>,
|
||||
fallback: T,
|
||||
): Promise<T> => {
|
||||
try {
|
||||
return await Promise.resolve().then(invoke);
|
||||
} catch {
|
||||
return fallback;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user