@mixd-id/web-scaffold 0.1.230406090 → 0.1.230406091

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mixd-id/web-scaffold",
3
3
  "private": false,
4
- "version": "0.1.230406090",
4
+ "version": "0.1.230406091",
5
5
  "scripts": {
6
6
  "dev": "vite serve",
7
7
  "build": "vite build",
@@ -74,11 +74,10 @@
74
74
  <script>
75
75
 
76
76
  import {componentMixin} from "../mixin/component";
77
- import axios from "axios";
78
77
 
79
78
  export default{
80
79
 
81
- inject: [ 'alert' ],
80
+ inject: [ 'alert', 'axios' ],
82
81
 
83
82
  mixins: [ componentMixin ],
84
83
 
@@ -112,7 +111,7 @@ export default{
112
111
  if(!this.submitUrl) return
113
112
 
114
113
  this.$refs.submitBtn.setState(2)
115
- axios({
114
+ this.axios({
116
115
  method: this.submitMethod ?? 'post',
117
116
  url: import.meta.env.VITE_API_HOST + this.submitUrl,
118
117
  data: {