fix the wrong then call on electron.ipcRenderer.invoke('prepare-run-geek-auto-start-chat-with-boss') - which should be catch call

This commit is contained in:
geekgeekrun
2024-03-10 12:20:32 +08:00
parent e794169020
commit 37cbb19bbd

View File

@@ -24,7 +24,7 @@ onMounted(() => {
.then(() => {
router.replace('/geekAutoStartChatWithBoss/runningStatus')
})
.then(async (err) => {
.catch(async (err) => {
if (err instanceof Error && err.message.includes('NEED_TO_CHECK_RUNTIME_DEPENDENCIES')) {
ElMessage.error({
message: `核心组件损坏,正在尝试修复`