Merge pull request #1645 from smilerz/fix_sql_debug

fix sql debug button in search
This commit is contained in:
vabene1111
2022-03-15 11:33:23 +01:00
committed by GitHub

View File

@ -1148,7 +1148,10 @@ export default {
}, },
showSQL: function () { showSQL: function () {
let params = this.buildParams() let params = this.buildParams()
this.genericAPI(this.Models.RECIPE, this.Actions.LIST, params).then((result) => {}) params.options.query.debug = true
this.genericAPI(this.Models.RECIPE, this.Actions.LIST, params).then((result) => {
console.log(result.data)
})
}, },
// TODO refactor to combine with load KeywordChildren // TODO refactor to combine with load KeywordChildren
loadFoodChildren({ action, parentNode, callback }) { loadFoodChildren({ action, parentNode, callback }) {