我在WSO2DAS上创建了一个小工具,可以独立查看其中的图表。但是,当我试图将其插入仪表板时,我无法看到它。 You can see the dashboard in the image but inserted gadget is not visible. Only setting and zoom in icons of it are visible.
答案 0 :(得分:0)
编辑以下文件:
(DAS_FOLDER)/repository/deployment/server/jaggeryapps/portal/extensions/components/gadget/index.js
将resolveGadgetURL函数替换为以下代码:
var resolveGadgetURL = function (uri) {
uri = resolveURI(uri);
if (uri.match(/^https?:\/\//i))
{ return uri; }
uri = uri.replace(/^(..\/)*/i, '');
if (window.location.protocol === 'https:')
{ return 'https://localhost:' + server.httpsPort + context + '/' + uri; }
return 'http://localhost:' + server.httpPort + context + '/' + uri;
};