| @@ -58,8 +58,8 @@ export default { | |||||
| }); | }); | ||||
| }, | }, | ||||
| getWidgets(type) { | |||||
| const url = baseUrl + `/print/printDatas?type=${type}` | |||||
| getWidgets(type, tenantId) { | |||||
| const url = baseUrl + `/print/printDatas?type=${type}&tenantId=${tenantId}` | |||||
| this.$axios.get(url) | this.$axios.get(url) | ||||
| .then(res => { | .then(res => { | ||||
| console.log(res, 'res') | console.log(res, 'res') | ||||
| @@ -88,7 +88,7 @@ export default { | |||||
| if (!this.value.tempItems || !this.value.tempItems.length) { | if (!this.value.tempItems || !this.value.tempItems.length) { | ||||
| this.value.tempItems = [] | this.value.tempItems = [] | ||||
| } | } | ||||
| this.getWidgets(this.value.type) | |||||
| this.getWidgets(this.value.type, tenantId) | |||||
| }) | }) | ||||
| .catch(err => { | .catch(err => { | ||||
| console.error(err); | console.error(err); | ||||