File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
src/render/components/Setup/FlyEnvHelper Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
- version : 14
1
+ version : 15
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ import { reactive } from 'vue'
2
2
import IPC from '@/util/IPC'
3
3
import { ElMessage } from 'element-plus'
4
4
import { I18nT } from '@lang/index'
5
+ import { FlyEnvHelperSetup } from '@/components/FlyEnvHelper/setup'
6
+ import { AsyncComponentShow } from '@/util/AsyncComponent'
5
7
6
8
export const FlyEnvHelperFix = reactive ( {
7
9
fixing : false ,
@@ -10,12 +12,16 @@ export const FlyEnvHelperFix = reactive({
10
12
return
11
13
}
12
14
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 ) => {
14
16
IPC . off ( key )
15
17
if ( res ?. code === 0 ) {
16
18
ElMessage . success ( I18nT ( 'setup.flyenvHelperFixSuccess' ) )
17
19
} 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
+ }
19
25
}
20
26
this . fixing = false
21
27
} )
You can’t perform that action at this time.
0 commit comments