mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-09-08 17:09:07 +08:00
adjust ui text; add the exit logic when download dependencies error
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { ipcMain, shell } from 'electron'
|
import { ipcMain, shell, app } from 'electron'
|
||||||
|
|
||||||
import * as childProcess from 'node:child_process'
|
import * as childProcess from 'node:child_process'
|
||||||
import {
|
import {
|
||||||
@@ -264,4 +264,8 @@ export default function initIpc() {
|
|||||||
const a = await getAutoStartChatRecord(payload)
|
const a = await getAutoStartChatRecord(payload)
|
||||||
return a
|
return a
|
||||||
})
|
})
|
||||||
|
|
||||||
|
ipcMain.handle('exit-app-immediately', () => {
|
||||||
|
app.exit(0)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -75,8 +75,8 @@ const processTasks = async () => {
|
|||||||
processTasks()
|
processTasks()
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
// FIXME: should exit app here
|
|
||||||
promiseList.length = 0
|
promiseList.length = 0
|
||||||
|
electron.ipcRenderer.invoke('exit-app-immediately')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,10 @@
|
|||||||
>编辑Cookie</el-button
|
>编辑Cookie</el-button
|
||||||
>
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="钉钉机器人 AccessToken" prop="dingtalkRobotAccessToken">
|
<el-form-item
|
||||||
|
label="钉钉机器人 AccessToken(请勿使用公司内部群)"
|
||||||
|
prop="dingtalkRobotAccessToken"
|
||||||
|
>
|
||||||
<el-input v-model="formContent.dingtalkRobotAccessToken" />
|
<el-input v-model="formContent.dingtalkRobotAccessToken" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="期望公司(以逗号分隔)" prop="expectCompanies">
|
<el-form-item label="期望公司(以逗号分隔)" prop="expectCompanies">
|
||||||
|
|||||||
Reference in New Issue
Block a user