Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Lemo1437 opened this issue Dec 11, 2018 · 1 comment

Comments

@Lemo1437
Copy link

No description provided.

@fritx
Copy link
Owner

fritx commented Dec 14, 2018

@Lemo1437 hi,之前在 #16 (comment) 有讨论过

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

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants