🐛 启动校验
This commit is contained in:
parent
a5279253a9
commit
7f0ed6142f
@ -227,7 +227,7 @@ export const initConfigApi = win => {
|
||||
} else {
|
||||
event.reply("Config.importConfig.hook", {
|
||||
success: false,
|
||||
data: `暂不支持${fileExtension}格式文件`
|
||||
data: `导入失败,暂不支持 ${fileExtension} 格式文件`
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -426,14 +426,21 @@ export const initFrpcApi = () => {
|
||||
ipcMain.on("frpc.start", async (event, args) => {
|
||||
getConfig((err1, config) => {
|
||||
if (!err1) {
|
||||
if (config) {
|
||||
startFrpWorkerProcess(config);
|
||||
} else {
|
||||
if (!config) {
|
||||
event.reply(
|
||||
"Home.frpc.start.error.hook",
|
||||
"请先前往设置页面,修改配置后再启动"
|
||||
);
|
||||
return;
|
||||
}
|
||||
if (!config.currentVersion) {
|
||||
event.reply(
|
||||
"Home.frpc.start.error.hook",
|
||||
"请先前往设置页面,修改配置后再启动"
|
||||
);
|
||||
return;
|
||||
}
|
||||
startFrpWorkerProcess(config);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user