Skip to content

Commit

Permalink
fix(ncform-common): avoid assigning a value to readonly this.$http
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-dx committed Dec 24, 2018
1 parent 3be88ba commit 65dcd14
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/ncform-common/src/mixins/vue/control-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import ncformUtils from "../../ncform-utils";
export default {
created() {

this.$http = this.$http || this.$axios || this.axios || axios;
if (!this.$http) {
this.$http = this.$axios || this.axios || axios;
}

this.$data.mergeConfig = extend(
true,
Expand Down

0 comments on commit 65dcd14

Please sign in to comment.