From 6baf576b2bb64e8dc5152816a5f15744514bcba2 Mon Sep 17 00:00:00 2001 From: mudio <523317421@qq.com> Date: Sat, 23 Dec 2017 10:05:36 +0800 Subject: [PATCH] fix init config error --- app/main/ConfigManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main/ConfigManager.js b/app/main/ConfigManager.js index feaed5b..f4371dd 100755 --- a/app/main/ConfigManager.js +++ b/app/main/ConfigManager.js @@ -12,7 +12,7 @@ import {REGION_BJ, REGION_GZ, REGION_SU, REGION_HK, REGION_HK02} from '../utils/ const bcedir = path.join('..', '.bce'); const config = new ConfigStore(bcedir, {}, {globalConfigPath: true}); -const {server, credentials, endpoint} = config.all; +const {server, credentials, endpoint = {}} = config.all; // 升级到https Object.keys(endpoint).forEach(key => {