Skip to content

Commit

Permalink
fix(user): make http as a default protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed Sep 17, 2019
1 parent f0e7b0f commit b20c22d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ export default {
&& this.newAuth.validate === ''
&& this.newAuth.invalidate === ''
&& this.newAuth.signout === '') {
if (!this.baseUrl.startsWith('http://') && !this.baseUrl.startsWith('https://')) {
this.baseUrl = `http://${this.baseUrl}`;
}
if (this.template === 0) {
this.newAuth.hostName = `${this.baseUrl}`;
} else {
Expand Down

0 comments on commit b20c22d

Please sign in to comment.