提交 6ba224b3 编写于 作者: d-u-a's avatar d-u-a

fix(unicloud-db组件): 每次都传递 spaceInfo

上级 5ebe0015
......@@ -195,7 +195,6 @@ export default {
},
created() {
this._isEnded = false
this.db = uniCloud.database(this.spaceInfo)
this.paginationInternal = {
current: this.pageCurrent,
size: this.pageSize,
......@@ -335,7 +334,7 @@ export default {
})
}
/* eslint-disable no-undef */
let db = this.db
let db = uniCloud.database(this.spaceInfo)
if (action) {
db = db.action(action)
}
......@@ -408,7 +407,7 @@ export default {
title: loadingTitle
})
}
let db = this.db
let db = uniCloud.database(this.spaceInfo)
if (action) {
db = db.action(action)
}
......@@ -436,7 +435,7 @@ export default {
})
},
getTemp(isTemp = true) {
let db = this.db
let db = uniCloud.database(this.spaceInfo)
if (this.action) {
db = db.action(this.action)
......@@ -572,7 +571,7 @@ export default {
})
}
const db = this.db
const db = uniCloud.database(this.spaceInfo)
const dbCmd = db.command
let exec = db
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册