Skip to content

Commit 262b614

Browse files
committed
Fix bug
1 parent 1ca55c9 commit 262b614

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

build/linux.build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version: 14
1+
version: 15

src/render/components/Setup/FlyEnvHelper/setup.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { reactive } from 'vue'
22
import IPC from '@/util/IPC'
33
import { ElMessage } from 'element-plus'
44
import { I18nT } from '@lang/index'
5+
import { FlyEnvHelperSetup } from '@/components/FlyEnvHelper/setup'
6+
import { AsyncComponentShow } from '@/util/AsyncComponent'
57

68
export const FlyEnvHelperFix = reactive({
79
fixing: false,
@@ -10,12 +12,16 @@ export const FlyEnvHelperFix = reactive({
1012
return
1113
}
1214
this.fixing = true
13-
IPC.send('App-Check-FlyEnv-Helper').then((key: string, res: any) => {
15+
IPC.send('APP:FlyEnv-Helper-Check').then((key: string, res: any) => {
1416
IPC.off(key)
1517
if (res?.code === 0) {
1618
ElMessage.success(I18nT('setup.flyenvHelperFixSuccess'))
1719
} else {
18-
ElMessage.success(I18nT('setup.flyenvHelperFixFail'))
20+
if (!FlyEnvHelperSetup.show) {
21+
import('@/components/FlyEnvHelper/index.vue').then((m) => {
22+
AsyncComponentShow(m.default).then()
23+
})
24+
}
1925
}
2026
this.fixing = false
2127
})

0 commit comments

Comments
 (0)