mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-05-29 20:30:00 +08:00
chore(release): v0.13.3
- 修复 #212 AI 消息气泡空白 - 修复 #215 HTTPS 下 WebSocket Mixed Content - 修复 #219 多实例版本检测错误 - 修复引擎切换后仪表盘无限加载 - 修复热更新假更新循环(macOS/Linux) - CI release 构建前自动同步版本号
This commit is contained in:
@@ -322,6 +322,20 @@ export function renderSidebar(el) {
|
||||
if (eng) {
|
||||
navigate(eng.isReady() ? eng.getDefaultRoute() : eng.getSetupRoute())
|
||||
}
|
||||
}).catch(err => {
|
||||
console.error('[sidebar] 切换引擎失败:', err)
|
||||
toast(t('engine.switchFailed') || '引擎切换失败,请稍后重试', 'error')
|
||||
renderSidebar(el)
|
||||
// 恢复内容区:重新加载当前路由或显示错误占位
|
||||
const contentEl = document.getElementById('content')
|
||||
if (contentEl) {
|
||||
const hash = window.location.hash.slice(1) || '/'
|
||||
if (hash) {
|
||||
reloadCurrentRoute()
|
||||
} else {
|
||||
contentEl.innerHTML = `<div class="page" style="padding:32px;color:var(--error)">加载失败,请刷新页面重试</div>`
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user