Archived
2
0

yay emoji!!!

This commit is contained in:
Craig
2020-02-01 20:35:48 +00:00
parent 1f1e67b829
commit 98980cc565
36 changed files with 2211 additions and 11779 deletions

View File

@ -1,6 +1,14 @@
import { PluginObject } from 'vue'
import axios, { AxiosStatic } from 'axios'
declare global {
const $http: AxiosStatic
interface Window {
$http: AxiosStatic
}
}
declare module 'vue/types/vue' {
interface Vue {
$http: AxiosStatic
@ -9,7 +17,8 @@ declare module 'vue/types/vue' {
const plugin: PluginObject<undefined> = {
install(Vue) {
Vue.prototype.$http = axios
window.$http = axios
Vue.prototype.$http = window.$http
},
}