Skip to content

Commit

Permalink
controller.base.fetch pass config to view.fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
hisland committed Feb 16, 2016
1 parent c15284e commit 0180c15
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 0180c15

Please sign in to comment.