Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
浪里行舟 authored Mar 24, 2020
1 parent 30a0781 commit ced7afe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vue2.0学习/基于axios接口封装/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Vue.prototype.$api=api;
//=>在组件中使用
methods: {
login() {
this.$api.person.login().then(result => {
this.$api.personal.login().then(result => {
console.log(result) // 直接就可以调用api,无需再引入api.js文件
// 业务逻辑
})
Expand Down

0 comments on commit ced7afe

Please sign in to comment.