fritx / vue-at

At.js for Vue.
https://fritx.github.io/vue-at/
MIT License
529 stars 114 forks source link

你好,我想问一下,怎么在@后获取后面的内容,然后后台请求数据,赋值给members,也就是动态获取members #81

Open Lemo1437 opened 5 years ago

fritx commented 5 years ago

@Lemo1437 hi,之前在 https://github.com/fritx/vue-at/issues/16#issuecomment-332897002 有讨论过

可以暂时先试一下这种方式看行不行 (还是需要实现一下该功能)

<at :members="members" @at="handleAt"></at>

<script>
// ...
async handleAt (chunk) {
  this.members = await fetchFromRemote(chunk)
}
</script>