You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
所以我尝试了另一种方案,在小程序中直接渲染 DatasheetPane 组件(使用这里提到的方式),不过后期也遇到了问题,虽然小程序和主程序的Redux Store 存在隔离,不过 @apitable/core 中有很多地方使用了全局变量的方式访问 Store
/**
* Static store for injection to external callers (web-side).
* Before calling Field on the web side, inject the store instance first, then you don't need to pass in the store again every time you bindModel
*/
let storeCache: Store;
export const injectStore = (store: Store) => { storeCache = store; };
这就导致在仪表盘中渲染两个表格的时候,数据会相关干扰。
我的问题是,是否有其他技术方案可以实现Redux Store 安全隔离?或者有更好的方案实现我的需求。
感谢可以提供一些建议或思路 。
The text was updated successfully, but these errors were encountered:
首先,十分感谢维格云可以开源这么优秀的产品 ~
背景:
在仪表盘中不只要展示图表,有时也要展示明细数据,并提供进一步操作,所以我想咨询如何在小程序中安全渲染表格。
社区有一个网址预览的小程序,原理是用 iframe 加载网址,可以在仪表盘展示表格数据,不过存在一些体验层面的缺点:
所以我尝试了另一种方案,在小程序中直接渲染 DatasheetPane 组件(使用这里提到的方式),不过后期也遇到了问题,虽然小程序和主程序的Redux Store 存在隔离,不过 @apitable/core 中有很多地方使用了全局变量的方式访问 Store
这就导致在仪表盘中渲染两个表格的时候,数据会相关干扰。
我的问题是,是否有其他技术方案可以实现Redux Store 安全隔离?或者有更好的方案实现我的需求。
感谢可以提供一些建议或思路 。
The text was updated successfully, but these errors were encountered: