Skip to content

Commit

Permalink
fix: system configuration file initializers should be created
Browse files Browse the repository at this point in the history
  • Loading branch information
buqiyuan committed Jun 17, 2022
1 parent abc6767 commit 0aad42f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ export class SettingComponent implements OnInit {
this.validateForm.valueChanges.subscribe(debounce(this.handleSave.bind(this), 300));
// 默认选中第一项
this.selectModule(this.treeControl.dataNodes.at(0));
this.handleSave();
}

handleShowModal() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export class RemoteService {
* 测试远程服务器地址是否可用
*/
async pingRmoteServerUrl(): Promise<[boolean, any]> {
const { url: remoteUrl, token } = window.eo.getModuleSettings('eoapi-common.remoteServer');
const { url: remoteUrl, token } = window.eo.getModuleSettings('eoapi-common.remoteServer') || {};

const url = `${remoteUrl}/system/status`.replace(/(?<!:)\/{2,}/g, '/');
const response = await fetch(url, {
Expand Down

0 comments on commit 0aad42f

Please sign in to comment.