mirror of
https://github.com/m1k1o/neko.git
synced 2025-08-06 10:20:26 +02:00
yay emoji!!!
This commit is contained in:
parent
1f1e67b829
commit
98980cc565
36 changed files with 2211 additions and 11779 deletions
|
@ -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
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue