受到vue-async-computed启发,为了方便在vue中使用fastrx。模仿vue-async-computed实现了一套自动订阅自动取消订阅的vue扩展: 首先需要注册扩展 import { rx } from "fastrx"; import RxComputed from "fastrx/vue"; Vue.use(RxComputed); 然后就可以在vue组件中使用: <template> <div @click="onClick1"... fastrx 1.4.3 新增 vue 扩展下载地址