mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 01:21:58 +00:00
Merge branch 'fix/rax-miniapp' into 'release/0.9.19'
fix: 1. 小程序导航配置 pagePath -> path 2.OneAPIConfig -> oneAPIConfig 1. 小程序导航配置 pagePath -> path 2.OneAPIConfig -> oneAPIConfig See merge request !986113
This commit is contained in:
commit
e5fb5dc948
@ -83,7 +83,7 @@ export class Project {
|
||||
const documentInstances = this.data.componentsTree.map((data) => this.createDocument(data));
|
||||
// TODO: 暂时先读 config tabBar 里的值,后面看整个 layout 结构是否能作为引擎规范
|
||||
if (this.config?.layout?.props?.tabBar?.items?.length > 0) {
|
||||
documentInstances.find((i) => i.fileName === this.config.layout.props.tabBar.items[0].pagePath)?.open();
|
||||
documentInstances.find((i) => i.fileName === this.config.layout.props.tabBar.items[0].path)?.open();
|
||||
} else {
|
||||
documentInstances[0].open();
|
||||
}
|
||||
|
||||
@ -173,15 +173,14 @@ export function bzb(apiCode, params, otherProps = {}) {
|
||||
}
|
||||
|
||||
export async function webTableProxy(req) {
|
||||
console.log(req);
|
||||
const { _table } = window.parent;
|
||||
const { VisualEngine } = window;
|
||||
const { Bus } = VisualEngine;
|
||||
if (_table) {
|
||||
const { options } = req;
|
||||
const { params, OneAPIConfig } = options;
|
||||
const { code } = OneAPIConfig;
|
||||
const sheetId = OneAPIConfig['x-model'];
|
||||
const { params, oneAPIConfig } = options;
|
||||
const { code } = oneAPIConfig;
|
||||
const sheetId = oneAPIConfig['x-model'];
|
||||
const sheet = await _table.find({ id: sheetId });
|
||||
const result = await sheet.instance.fetch({ code }, params);
|
||||
return result;
|
||||
@ -189,9 +188,9 @@ export async function webTableProxy(req) {
|
||||
return new Promise((resolve, reject) => {
|
||||
Bus.emitter.on('table.ready', async (table) => {
|
||||
const { options } = req;
|
||||
const { params, OneAPIConfig } = options;
|
||||
const { code } = OneAPIConfig;
|
||||
const sheetId = OneAPIConfig['x-model'];
|
||||
const { params, oneAPIConfig } = options;
|
||||
const { code } = oneAPIConfig;
|
||||
const sheetId = oneAPIConfig['x-model'];
|
||||
const sheet = await table.find({ id: sheetId });
|
||||
const result = await sheet.instance.fetch({ code }, params);
|
||||
resolve(result);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user