mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-02-28 21:20:28 +00:00
feat: window._table
This commit is contained in:
parent
41f7724ac3
commit
e6cce3100f
@ -172,14 +172,16 @@ export function bzb(apiCode, params, otherProps = {}) {
|
||||
|
||||
export async function webTableProxy(req) {
|
||||
console.log(req);
|
||||
const { _table } = window;
|
||||
const { VisualEngine } = window;
|
||||
const { Bus, Table } = VisualEngine;
|
||||
if (Table) {
|
||||
// if (Table) {
|
||||
if (_table) {
|
||||
const { options } = req;
|
||||
const { params, OneAPIConfig } = options;
|
||||
const { code } = OneAPIConfig;
|
||||
const sheetId = OneAPIConfig['x-model'];
|
||||
const sheet = await Table.find({ id: sheetId });
|
||||
const sheet = await _table.find({ id: sheetId });
|
||||
const result = await sheet.instance.fetch({ code }, params);
|
||||
return result;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user