yay emoji!!!
This commit is contained in:
@ -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
|
||||
},
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user