Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wencaizhang/vue-axios

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wencaizhang/vue-axios

A small wrapper for integrating axios to Vue.js

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

@wencaizhang/vue-axios

将 axios 整合到 Vue.js 中

How to install:

CommonJS:

安装依赖

npm install --save axios @wencaizhang/vue-axios

在入口文件中注册插件

import Vue from 'vue'
import axios from 'axios'
import VueAxios from '@wencaizhang/vue-axios'

Vue.use(VueAxios, axios, configOptions)

你可以通过 configOptions 参数为 axios 指定默认配置。

Usage:

可以通过 Vue 调用

Vue.$http.get(api).then((resp) => {
  console.log(resp.data)
})

在单文件组件中,可以通过 this 调用:

this.$http.get(api).then((resp) => {
  console.log(resp.data)
})

Keywords

FAQs

Package last updated on 19 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc