mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-10 01:48:18 +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) {
|
export async function webTableProxy(req) {
|
||||||
console.log(req);
|
console.log(req);
|
||||||
|
const { _table } = window;
|
||||||
const { VisualEngine } = window;
|
const { VisualEngine } = window;
|
||||||
const { Bus, Table } = VisualEngine;
|
const { Bus, Table } = VisualEngine;
|
||||||
if (Table) {
|
// if (Table) {
|
||||||
|
if (_table) {
|
||||||
const { options } = req;
|
const { options } = req;
|
||||||
const { params, OneAPIConfig } = options;
|
const { params, OneAPIConfig } = options;
|
||||||
const { code } = OneAPIConfig;
|
const { code } = OneAPIConfig;
|
||||||
const sheetId = OneAPIConfig['x-model'];
|
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);
|
const result = await sheet.instance.fetch({ code }, params);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user