Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Commit

Permalink
fix init config error
Browse files Browse the repository at this point in the history
  • Loading branch information
mudio committed Dec 23, 2017
1 parent 71168a8 commit 6baf576
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/main/ConfigManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit 6baf576

Please sign in to comment.