Skip to content

Commit a3522a6

Browse files
Dean OhashiDean Ohashi
authored andcommitted
added axios
1 parent 85f2638 commit a3522a6

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"aws-amplify": "^1.1.32",
2222
"aws-amplify-vue": "^0.2.13",
2323
"aws-appsync": "^1.8.1",
24+
"axios": "^0.19.0",
2425
"fs-extra": "^8.1.0",
2526
"graphql": "^14.4.2",
2627
"graphql-tag": "^2.10.1",

quasar.conf.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module.exports = function (ctx) {
66
// app boot file (/src/boot)
77
// --> boot files are part of "main.js"
88
boot: [
9+
'axios'
910
],
1011

1112
css: [

src/boot/axios.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import axios from 'axios'
2+
export default ({ Vue }) => {
3+
Vue.prototype.$axios = axios;
4+
}

0 commit comments

Comments
 (0)