数据库插件
This commit is contained in:
+3
-3
@@ -26,7 +26,7 @@ module.exports = class Bamboo extends Koa {
|
||||
for (let listElement of list) {
|
||||
await listElement.res(this)
|
||||
}
|
||||
this.willReadyList.push(()=>{
|
||||
this.willReadyList.push(() => {
|
||||
this.startServer()
|
||||
})
|
||||
await this.willReady()
|
||||
@@ -36,7 +36,7 @@ module.exports = class Bamboo extends Koa {
|
||||
/*扩展已经加载完成触发*/
|
||||
async willReady() {
|
||||
for (let WRL of this.willReadyList) {
|
||||
WRL()
|
||||
await WRL()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ module.exports = class Bamboo extends Koa {
|
||||
if (er) {
|
||||
reject(er)
|
||||
}
|
||||
console.log("获取到的文件:", files);
|
||||
// console.log("获取到的文件:", files);
|
||||
files = files.map(item => {
|
||||
const parse = path.parse(item);
|
||||
return {
|
||||
|
||||
@@ -483,8 +483,8 @@ module.exports = class Bamboo extends Koa {
|
||||
}
|
||||
|
||||
/**
|
||||
* 数据分组
|
||||
* @param {string|array} value 传需要分组的字段['createdAt'].
|
||||
* 仅选择某些属性
|
||||
* @param {array} value 仅选择某些属性['foo', ['bar', 'baz'], 'qux'].
|
||||
*/
|
||||
attributes(value) {
|
||||
this.tableAttributes = value
|
||||
|
||||
Reference in New Issue
Block a user