用AI赚第一桶💰低成本搭建一套AI赚钱工具,源码可二开。 广告
## # 更新数据 使用`$cloud`类的`update`方法向数据库数据删除 ~~~ export default { data() { return { data: { 'foo': 'bar', 'bar': 'foo' } } }, /** * 页面加载执行 * @return {[type]} [description] */ async mounted() { this.$cloud.name('demo').where('_id', 1).update(this.data).then(res => { console.log("条件删除", res) }); this.$cloud.name('demo').where('_id', '<', 10).update(this.data).then(res => { console.log("条件删除", res) }); this.$cloud.name('demo').where({ _id: 1 }).update(this.data).then(res => { console.log("条件删除", res) }); } } ~~~