Skip to content

Commit

Permalink
Merge pull request thinkjs#264 from hisland/master
Browse files Browse the repository at this point in the history
controller.base.fetch pass config to view.fetch
  • Loading branch information
welefen committed Feb 22, 2016
2 parents c15284e + 0180c15 commit 7ac963b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controller/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@ export default class extends think.http.base {
* @param {String} templateFile [template filepath]
* @return {promise} []
*/
fetch(templateFile, data) {
fetch(templateFile, data, config) {
this._baseAssign();
return this.view().fetch(templateFile, data);
return this.view().fetch(templateFile, data, config);
}
/**
* display template
Expand Down

0 comments on commit 7ac963b

Please sign in to comment.