egg-born-module-a-base-sync
Advanced tools
Comparing version 1.2.13 to 1.2.14
@@ -32,2 +32,7 @@ const _modulesLocales = {}; | ||
getAbsoluteUrl(path) { | ||
const prefix = this.host ? `${this.protocol}://${this.host}` : ''; | ||
return `${prefix}${path}`; | ||
} | ||
modules() { | ||
@@ -34,0 +39,0 @@ if (!_modulesLocales[ctx.locale]) { |
@@ -104,4 +104,4 @@ const require3 = require('require3'); | ||
config.failWithError = false; | ||
config.loginURL = _config.loginURL; | ||
config.callbackURL = _config.callbackURL; | ||
config.loginURL = ctx.meta.base.getAbsoluteUrl(_config.loginURL); | ||
config.callbackURL = ctx.meta.base.getAbsoluteUrl(_config.callbackURL); | ||
config.state = ctx.request.query.state; | ||
@@ -108,0 +108,0 @@ |
{ | ||
"name": "egg-born-module-a-base-sync", | ||
"version": "1.2.13", | ||
"version": "1.2.14", | ||
"title": "Base", | ||
@@ -5,0 +5,0 @@ "eggBornModule": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
969866
14225