const {
BaseController
} = require("base-cloud-v3");
module.exports = class GoodsController extends BaseController {
constructor(ctx) {
super(ctx, "ent");
}
async info(_id){
return await this.table.info(_id);
}
};
async get_ent_info(id) {
uni.showLoading({
title: '处理中...'
})
return await uniCloud.callFunction({
name: 'api',
data: {action: 'ent/info',
data: {
id: id
},
},
}).then((res) => {
.......
code: "INVOKE_FUNCTION_FAILED"
message: "this.table.info is not a function"
哪里的问题啊
1 个回复
BaseCloud - BaseCloud是一套基于uniapp、uniCloud、uni-id的全栈开发框架,不依赖任何第三方框架,极度精简轻巧。
this.table.findById(_id)才对