Skip to content

Commit

Permalink
feat: 广告合并-bugfix #314 (#1287)
Browse files Browse the repository at this point in the history
* feat: 广告合并-bugfix #314

* feat: 广告合并-bugfix #314

* feat: 广告合并-bugfix

* feat: 广告合并-bugfix
  • Loading branch information
Espoir-L authored Nov 15, 2018
1 parent be95235 commit 9325ce8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/mip-custom/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,16 @@ define(function (require) {
}

function addPaths(config) {
if (config.paths) {
for (var key in config.paths) {
if (config.paths.hasOwnProperty(key)) {
config.paths[key] = config.domain + config.paths[key];
var customConfig = JSON.parse(JSON.stringify(config));
if (customConfig.paths) {
for (var key in customConfig.paths) {
if (customConfig.paths.hasOwnProperty(key)) {
customConfig.paths[key] = customConfig.domain + customConfig.paths[key];
}
}
}

return config;
return customConfig;
}

/**
Expand Down

0 comments on commit 9325ce8

Please sign in to comment.