Skip to content

Commit

Permalink
update plugin doc
Browse files Browse the repository at this point in the history
  • Loading branch information
airyland committed Feb 24, 2017
1 parent 7a2a6ae commit d9c9be3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/zh-CN/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ router.afterEach(function (to) {
import { WechatPlugin } from 'vux'
Vue.use(WechatPlugin)

console.log(WechatPlugin.$wechat) // 可以直接访问 wx 对象。
console.log(Vue.wechat) // 可以直接访问 wx 对象。
```
那么之后任何组件中都可以通过 `this.$wechat` 访问到 `wx` 对象。
Expand Down Expand Up @@ -377,7 +377,7 @@ require('es6-promise').polyfill()
import { AjaxPlugin } from 'vux'
Vue.use(AjaxPlugin)

console.log(AjaxPlugin.$http)
console.log(Vue.http)
```
然后你可以和`vue-resource`一样在组件内使用`this.$http`进行调用了。
Expand Down
4 changes: 2 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ if (process.env.platform === 'app') {
Vue.use(AppPlugin, store)
}

const wx = WechatPlugin.$wechat
const http = AjaxPlugin.$http
const wx = Vue.wechat
const http = Vue.http

/**
* -------------------------- 微信分享 ----------------------
Expand Down

0 comments on commit d9c9be3

Please sign in to comment.