|
|
- import http from './http.js'
- import util from './utils.js'
- import time from './timeUtils.js'
- import storage from './storage.js'
-
- const plugins = {
- install(app) {
- app.config.globalProperties.$http = http.http
- app.config.globalProperties.$httpGet = http.get
- app.config.globalProperties.$httpPost = http.post
- app.config.globalProperties.$httpDelete = http.delete
- app.config.globalProperties.$httpSync = http.syncHttp
-
- app.config.globalProperties.$timeUtils = time
- app.config.globalProperties.$utils = util
- app.config.globalProperties.$storage = storage
- }
- }
-
- export default plugins;
|